X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/69919241d35e5382ca7800dd47562ff92d2918cf..2a29700ecf3d6862db16c5f5c9086a698a7ff247:/src/gtk/app.cpp?ds=sidebyside diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index d499026b38..78511d556f 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -30,6 +30,13 @@ #endif #include "unistd.h" +#ifdef __SUN__ +extern "C" +{ +void usleep(unsigned long usec); +}; +#endif + #include "glib.h" #include "gdk/gdk.h" #include "gtk/gtk.h" @@ -444,6 +451,12 @@ void wxApp::CleanUp(void) delete wxTheApp; wxTheApp = (wxApp*) NULL; + wxSystemSettings::Done(); + + delete[] wxBuffer; + + wxClassInfo::CleanUpClasses(); + /* check for memory leaks */ #if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT if (wxDebugContext::CountObjectsLeft() > 0) @@ -459,12 +472,6 @@ void wxApp::CleanUp(void) wxLog *oldLog = wxLog::SetActiveTarget( (wxLog*) NULL ); if (oldLog) delete oldLog; - - wxSystemSettings::Done(); - - wxClassInfo::CleanUpClasses(); - - delete[] wxBuffer; } wxLog *wxApp::CreateLogTarget()