set m_isBeingDeleted to true (only) in SendDestroyEvent(); call it as early as possible during the window destruction to ensure that destroy event handlers can still access the full window object
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2040,9 +2040,8 @@ void wxWindowGTK::Init()
|
||||
m_height = 0;
|
||||
|
||||
m_hasVMT = false;
|
||||
m_isBeingDeleted = false;
|
||||
|
||||
m_showOnIdle= false;
|
||||
m_showOnIdle = false;
|
||||
|
||||
m_noExpose = false;
|
||||
m_nativeSizeEvent = false;
|
||||
@@ -2210,7 +2209,6 @@ wxWindowGTK::~wxWindowGTK()
|
||||
if ( gs_deferredFocusOut == this )
|
||||
gs_deferredFocusOut = NULL;
|
||||
|
||||
m_isBeingDeleted = true;
|
||||
m_hasVMT = false;
|
||||
|
||||
// destroy children before destroying this window itself
|
||||
|
Reference in New Issue
Block a user