From: Vadim Zeitlin Date: Tue, 13 Jul 2004 13:41:47 +0000 (+0000) Subject: clean up modules after destroying the app, not before it X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a4de7e8ccf4bf69d150c29c9a3d53e5754c8b8a9?ds=sidebyside clean up modules after destroying the app, not before it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/init.cpp b/src/common/init.cpp index 94741249d6..80e2c7bc5e 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -325,13 +325,13 @@ static void DoCommonPreCleanup() // this will flush the old messages if any delete wxLog::SetActiveTarget(new wxLogStderr); #endif // wxUSE_LOG - - wxModule::CleanUpModules(); } // cleanup done after destroying wxTheApp static void DoCommonPostCleanup() { + wxModule::CleanUpModules(); + wxClassInfo::CleanUp(); // we can't do this in wxApp itself because it doesn't know if argv had