X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..a78955e377453e2b8dacdbea05c3f5a8769d5e58:/src/common/init.cpp?ds=inline diff --git a/src/common/init.cpp b/src/common/init.cpp index 21b2e37216..459d37a7cc 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -6,7 +6,7 @@ // Created: 04.10.99 // RCS-ID: $Id$ // Copyright: (c) Vadim Zeitlin -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -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 __PALMOS__ + return -1; #else ::ExitProcess(3); // the same exit code as abort() #endif