clean up wxEvtHandler::m_eventsLocker weirdness: there is no need to allocate it dynamically (as it's always done anyhow), this removes the need for ClearEventLocker() and OS/2 #ifdefs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -138,13 +138,6 @@ void wxAppBase::CleanUp()
|
||||
delete wxTheColourDatabase;
|
||||
wxTheColourDatabase = 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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user