After delete wxPendingEventsLocker; wxPendingEventsLocker = NULL; so that

the wxEvent code doesn't try to use it while cleaning up.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott 2003-04-07 18:06:46 +00:00
parent a29c6824c2
commit 376c2fba79
2 changed files with 4 additions and 0 deletions

View File

@ -670,6 +670,8 @@ void wxApp::CleanUp()
#if wxUSE_THREADS
delete wxPendingEventsLocker;
// There is still more cleanup code that will try to use this if not NULL.
wxPendingEventsLocker = NULL;
// If we don't do the following, we get an apparent memory leak.
((wxEvtHandler&) wxDefaultValidator).ClearEventLocker();
#endif

View File

@ -670,6 +670,8 @@ void wxApp::CleanUp()
#if wxUSE_THREADS
delete wxPendingEventsLocker;
// There is still more cleanup code that will try to use this if not NULL.
wxPendingEventsLocker = NULL;
// If we don't do the following, we get an apparent memory leak.
((wxEvtHandler&) wxDefaultValidator).ClearEventLocker();
#endif