X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..107d0fd493dc4d750ba18518a2eea5b93d988965:/src/common/init.cpp?ds=sidebyside diff --git a/src/common/init.cpp b/src/common/init.cpp index 94741249d6..67112ab050 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -312,7 +312,7 @@ bool wxEntryStart(int& argc, char **argv) // clean up // ---------------------------------------------------------------------------- -// cleanup done before destroying wxTheApp +// cleanup done before destroying wxTheApp static void DoCommonPreCleanup() { #if wxUSE_LOG @@ -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 @@ -433,6 +433,8 @@ int wxEntry(int& argc, wxChar **argv) { #ifdef __WXWINCE__ ::ExitThread(3); // the same exit code as abort() +#elif __WXPALMOS__ + return -1; #else ::ExitProcess(3); // the same exit code as abort() #endif