Fix for crash on exit.
authorMattia Barbon <mbarbon@cpan.org>
Mon, 5 May 2003 20:51:18 +0000 (20:51 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Mon, 5 May 2003 20:51:18 +0000 (20:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/app.cpp
src/gtk1/app.cpp

index ff2211ebbf9c297fb4c5d65e1e24db506625139f..3cb777b95939424363166a36bea1388985c4438f 100644 (file)
@@ -733,7 +733,9 @@ void wxApp::CleanUp()
 
 #if wxUSE_THREADS
     delete wxPendingEvents;
+    wxPendingEvents = NULL;
     delete wxPendingEventsLocker;
+    wxPendingEventsLocker = NULL;
 #endif
 
     // check for memory leaks
index ff2211ebbf9c297fb4c5d65e1e24db506625139f..3cb777b95939424363166a36bea1388985c4438f 100644 (file)
@@ -733,7 +733,9 @@ void wxApp::CleanUp()
 
 #if wxUSE_THREADS
     delete wxPendingEvents;
+    wxPendingEvents = NULL;
     delete wxPendingEventsLocker;
+    wxPendingEventsLocker = NULL;
 #endif
 
     // check for memory leaks