overriding to allocate an outer autorelease pool
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -50,9 +50,7 @@ class WXDLLIMPEXP_CORE wxApp: public wxAppBase
|
|||||||
virtual bool OnInitGui();
|
virtual bool OnInitGui();
|
||||||
#endif // wxUSE_GUI
|
#endif // wxUSE_GUI
|
||||||
|
|
||||||
#ifdef __WXOSX_IPHONE__
|
|
||||||
virtual int OnRun();
|
virtual int OnRun();
|
||||||
#endif
|
|
||||||
|
|
||||||
virtual bool ProcessIdle();
|
virtual bool ProcessIdle();
|
||||||
|
|
||||||
|
@@ -866,6 +866,20 @@ bool wxApp::ProcessIdle()
|
|||||||
return wxAppBase::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
|
#if wxOSX_USE_CARBON
|
||||||
bool wxApp::DoInitGui()
|
bool wxApp::DoInitGui()
|
||||||
{
|
{
|
||||||
@@ -939,6 +953,7 @@ void wxApp::DoCleanUp()
|
|||||||
|
|
||||||
void wxApp::CleanUp()
|
void wxApp::CleanUp()
|
||||||
{
|
{
|
||||||
|
wxMacAutoreleasePool autoreleasepool;
|
||||||
#if wxUSE_TOOLTIPS
|
#if wxUSE_TOOLTIPS
|
||||||
wxToolTip::RemoveToolTips() ;
|
wxToolTip::RemoveToolTips() ;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user