From 91402a0de882ee2b8c07f66e5b5d041c25e48fe6 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 14 Nov 2021 13:19:06 +0100 Subject: [PATCH] fixing embedded usage when running under OSX embedded, we must NOT allocate an autorelease pool, it gets corrupted otherwise --- src/osx/carbon/app.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()