diff --git a/src/osx/carbon/app.cpp b/src/osx/carbon/app.cpp index 1b6cefa687..62bf85fe84 100644 --- a/src/osx/carbon/app.cpp +++ b/src/osx/carbon/app.cpp @@ -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()