From: David Elliott Date: Mon, 7 Apr 2003 18:06:46 +0000 (+0000) Subject: After delete wxPendingEventsLocker; wxPendingEventsLocker = NULL; so that X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/376c2fba79596850942a619410cbd028c20def0c 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 --- diff --git a/src/mac/app.cpp b/src/mac/app.cpp index aab9d27580..0e4ce104f2 100644 --- a/src/mac/app.cpp +++ b/src/mac/app.cpp @@ -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 diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp index aab9d27580..0e4ce104f2 100644 --- a/src/mac/carbon/app.cpp +++ b/src/mac/carbon/app.cpp @@ -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