reset g_delayedFocus when the window is deleted to avoid crashes when using it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-04-22 15:44:55 +00:00
parent 73847506eb
commit 3e679f0190
2 changed files with 6 additions and 0 deletions

View File

@@ -2524,6 +2524,9 @@ wxWindowGTK::~wxWindowGTK()
if (g_activeFrame == this)
g_activeFrame = NULL;
if ( g_delayedFocus == this )
g_delayedFocus = NULL;
m_isBeingDeleted = TRUE;
m_hasVMT = FALSE;