Safer access of member variables
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -630,8 +630,10 @@ wxView::wxView()
|
||||
|
||||
wxView::~wxView()
|
||||
{
|
||||
GetDocumentManager()->ActivateView(this, false);
|
||||
m_viewDocument->RemoveView(this);
|
||||
if (GetDocumentManager())
|
||||
GetDocumentManager()->ActivateView(this, false);
|
||||
if (m_viewDocument)
|
||||
m_viewDocument->RemoveView(this);
|
||||
}
|
||||
|
||||
// Extend event processing to search the document's event table
|
||||
|
Reference in New Issue
Block a user