]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appbase.cpp
Fix wxWrapSizer minimal size calculation.
[wxWidgets.git] / src / common / appbase.cpp
index 86b87c16cb2f3ad61229f429ca01920cac85c51e..34dbcf00895d548fba98903aa2485eeac7b08381 100644 (file)
@@ -370,6 +370,9 @@ bool wxAppConsoleBase::ProcessIdle()
     wxLog::FlushActive();
 #endif
 
+    // Garbage collect all objects previously scheduled for destruction.
+    DeletePendingObjects();
+
     return event.MoreRequested();
 }
 
@@ -509,9 +512,6 @@ void wxAppConsoleBase::ProcessPendingEvents()
 
         wxLEAVE_CRIT_SECT(m_handlersWithPendingEventsLocker);
     }
-
-    // Garbage collect all objects previously scheduled for destruction.
-    DeletePendingObjects();
 }
 
 void wxAppConsoleBase::DeletePendingEvents()