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
#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
#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