X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32e9da8bfaafe4f462f7473a7e11e3387847e121..41dee9d0ce93989c03848ebd7fc21fb402d4c247:/src/gtk1/app.cpp diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index f51c92ff70..f65ab8ecaf 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -323,30 +323,14 @@ void wxApp::CommonInit(void) wxInitializeResourceSystem(); - // For PostScript printing -#if wxUSE_POSTSCRIPT -/* Now done in wxPostScriptModule - wxInitializePrintSetupData(); - wxThePrintPaperDatabase = new wxPrintPaperDatabase; - wxThePrintPaperDatabase->CreateDatabase(); - */ -#endif - - -/* - wxBitmap::InitStandardHandlers(); - - g_globalCursor = new wxCursor; -*/ + wxImage::InitStandardHandlers(); + +// g_globalCursor = new wxCursor; } void wxApp::CommonCleanUp(void) { wxDELETE(wxTheColourDatabase); -/* Now done in wxPostScriptModule - wxDELETE(wxThePrintPaperDatabase); - wxDELETE(wxThePrintSetupData); - */ wxDELETE(wxTheFontNameDirectory); wxDeleteStockObjects(); @@ -357,6 +341,8 @@ void wxApp::CommonCleanUp(void) wxDeleteStockLists(); wxCleanUpResourceSystem(); + + wxImage::CleanUpHandlers(); wxSystemSettings::Done(); } @@ -376,7 +362,7 @@ int wxEntry( int argc, char *argv[] ) wxClassInfo::InitializeClasses(); -#if (WXDEBUG && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT +#if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT streambuf* sBuf = new wxDebugStreamBuf; ostream* oStr = new ostream(sBuf) ; @@ -466,7 +452,7 @@ int wxEntry( int argc, char *argv[] ) delete[] wxBuffer; -#if (WXDEBUG && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT +#if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT if (wxDebugContext::CountObjectsLeft() > 0) {