From 376c2fba79596850942a619410cbd028c20def0c Mon Sep 17 00:00:00 2001 From: David Elliott Date: Mon, 7 Apr 2003 18:06:46 +0000 Subject: [PATCH] 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 --- src/mac/app.cpp | 2 ++ src/mac/carbon/app.cpp | 2 ++ 2 files changed, 4 insertions(+) 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