fixing embedded usage

when running under OSX embedded, we must NOT allocate an autorelease pool, it gets corrupted otherwise
This commit is contained in:
Stefan Csomor
2021-11-14 13:19:06 +01:00
parent 2ca9951357
commit 91402a0de8

View File

@@ -386,7 +386,7 @@ wxApp::wxApp()
m_macCurrentEvent = NULL ;
m_macCurrentEventHandlerCallRef = NULL ;
m_macPool = new wxMacAutoreleasePool();
m_macPool = sm_isEmbedded ? NULL : new wxMacAutoreleasePool();
}
wxApp::~wxApp()