git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62216
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual bool OnInitGui();
#endif // wxUSE_GUI
-#ifdef __WXOSX_IPHONE__
virtual int OnRun();
-#endif
virtual bool ProcessIdle();
return wxAppBase::ProcessIdle();
}
+#if wxOSX_USE_COCOA_OR_CARBON
+
+int wxApp::OnRun()
+{
+ wxMacAutoreleasePool pool;
+ return wxAppBase::OnRun();
+}
+
+#else
+
+// iPhone version in utils.mm
+
+#endif
+
#if wxOSX_USE_CARBON
bool wxApp::DoInitGui()
{
void wxApp::CleanUp()
{
+ wxMacAutoreleasePool autoreleasepool;
#if wxUSE_TOOLTIPS
wxToolTip::RemoveToolTips() ;
#endif