From: Mattia Barbon Date: Mon, 5 May 2003 20:51:18 +0000 (+0000) Subject: Fix for crash on exit. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1ae2e0af5aaefe5a9409964daed3c5ca70ee24a0 Fix for crash on exit. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index ff2211ebbf..3cb777b959 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -733,7 +733,9 @@ void wxApp::CleanUp() #if wxUSE_THREADS delete wxPendingEvents; + wxPendingEvents = NULL; delete wxPendingEventsLocker; + wxPendingEventsLocker = NULL; #endif // check for memory leaks diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index ff2211ebbf..3cb777b959 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -733,7 +733,9 @@ void wxApp::CleanUp() #if wxUSE_THREADS delete wxPendingEvents; + wxPendingEvents = NULL; delete wxPendingEventsLocker; + wxPendingEventsLocker = NULL; #endif // check for memory leaks