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:
parent
6bd1764f27
commit
ada175836e
@ -50,9 +50,7 @@ class WXDLLIMPEXP_CORE wxApp: public wxAppBase
|
||||
virtual bool OnInitGui();
|
||||
#endif // wxUSE_GUI
|
||||
|
||||
#ifdef __WXOSX_IPHONE__
|
||||
virtual int OnRun();
|
||||
#endif
|
||||
|
||||
virtual bool ProcessIdle();
|
||||
|
||||
|
@ -866,6 +866,20 @@ bool wxApp::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()
|
||||
{
|
||||
@ -939,6 +953,7 @@ void wxApp::DoCleanUp()
|
||||
|
||||
void wxApp::CleanUp()
|
||||
{
|
||||
wxMacAutoreleasePool autoreleasepool;
|
||||
#if wxUSE_TOOLTIPS
|
||||
wxToolTip::RemoveToolTips() ;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user