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:
@@ -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
|
||||
|
Reference in New Issue
Block a user