fixing embedded usage
when running under OSX embedded, we must NOT allocate an autorelease pool, it gets corrupted otherwise
This commit is contained in:
@@ -386,7 +386,7 @@ wxApp::wxApp()
|
|||||||
|
|
||||||
m_macCurrentEvent = NULL ;
|
m_macCurrentEvent = NULL ;
|
||||||
m_macCurrentEventHandlerCallRef = NULL ;
|
m_macCurrentEventHandlerCallRef = NULL ;
|
||||||
m_macPool = new wxMacAutoreleasePool();
|
m_macPool = sm_isEmbedded ? NULL : new wxMacAutoreleasePool();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxApp::~wxApp()
|
wxApp::~wxApp()
|
||||||
|
Reference in New Issue
Block a user