From: Vadim Zeitlin Date: Fri, 18 May 2007 15:41:06 +0000 (+0000) Subject: call wxAppConsole::CleanUp() from the derived class version X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/68d2c3bedc97f9ac3ba5d5686616ac52dbbea598 call wxAppConsole::CleanUp() from the derived class version git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index f426219329..dca75fefd9 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -138,15 +138,14 @@ void wxAppBase::CleanUp() delete wxTheColourDatabase; wxTheColourDatabase = NULL; - delete wxPendingEvents; - wxPendingEvents = NULL; - #if wxUSE_THREADS #if wxUSE_VALIDATORS // If we don't do the following, we get an apparent memory leak. ((wxEvtHandler&) wxDefaultValidator).ClearEventLocker(); #endif // wxUSE_VALIDATORS #endif // wxUSE_THREADS + + wxAppConsole::CleanUp(); } // ----------------------------------------------------------------------------