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
This commit is contained in:
Vadim Zeitlin
2007-05-18 15:41:06 +00:00
parent 82a4f054a9
commit 68d2c3bedc

View File

@@ -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();
}
// ----------------------------------------------------------------------------