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:
parent
a29c6824c2
commit
376c2fba79
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user