From 1ae2e0af5aaefe5a9409964daed3c5ca70ee24a0 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Mon, 5 May 2003 20:51:18 +0000 Subject: [PATCH] Fix for crash on exit. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/app.cpp | 2 ++ src/gtk1/app.cpp | 2 ++ 2 files changed, 4 insertions(+) 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 -- 2.47.2