Safer access of member variables

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2009-12-07 15:05:28 +00:00
parent 0639363014
commit 63c639ec62

View File

@@ -651,7 +651,8 @@ wxView::wxView()
wxView::~wxView()
{
GetDocumentManager()->ActivateView(this, false);
if (GetDocumentManager())
GetDocumentManager()->ActivateView(this, false);
// reset our frame view first, before removing it from the document as
// SetView(NULL) is a simple call while RemoveView() may result in user