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,6 +651,7 @@ wxView::wxView()
|
|||||||
|
|
||||||
wxView::~wxView()
|
wxView::~wxView()
|
||||||
{
|
{
|
||||||
|
if (GetDocumentManager())
|
||||||
GetDocumentManager()->ActivateView(this, false);
|
GetDocumentManager()->ActivateView(this, false);
|
||||||
|
|
||||||
// reset our frame view first, before removing it from the document as
|
// reset our frame view first, before removing it from the document as
|
||||||
|
Reference in New Issue
Block a user