]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appcmn.cpp
VC6 compilation fix for native wxProgressDialog implementation.
[wxWidgets.git] / src / common / appcmn.cpp
index 003debce41f173b30e88e8c89fb67c14182cc4b6..844aec1f42b31b492d59f8d89a20f0fbe6100398 100644 (file)
@@ -128,8 +128,7 @@ void wxAppBase::CleanUp()
 
     wxDeleteStockLists();
 
-    delete wxTheColourDatabase;
-    wxTheColourDatabase = NULL;
+    wxDELETE(wxTheColourDatabase);
 
     wxAppConsole::CleanUp();
 }
@@ -399,7 +398,11 @@ bool wxAppBase::SendIdleEvents(wxWindow* win, wxIdleEvent& event)
 wxLog *wxGUIAppTraitsBase::CreateLogTarget()
 {
 #if wxUSE_LOGGUI
+#ifndef __WXOSX_IPHONE__
     return new wxLogGui;
+#else
+    return new wxLogStderr;
+#endif
 #else
     // we must have something!
     return new wxLogStderr;