X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4241baae4472ef2736b8ac8c6a975b0ba398909b..be6577566570876c0c00621ff98c786d7c6de80e:/src/mac/carbon/window.cpp diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 2d30db0296..d68b00c5bd 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -104,6 +104,7 @@ void wxWindowMac::Init() // generic InitBase(); + m_isBeingDeleted = FALSE; m_backgroundTransparent = FALSE; // as all windows are created with WS_VISIBLE style... @@ -139,6 +140,8 @@ wxWindowMac::~wxWindowMac() } } + m_isBeingDeleted = TRUE; + #ifndef __WXUNIVERSAL__ // VS: make sure there's no wxFrame with last focus set to us: for ( wxWindow *win = GetParent(); win; win = win->GetParent() )