X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77fb1a02aac56528bbf3229af32634cc02795906..4d7e2cdad3ccf26cc5185eb30ef827b1c767e7c4:/src/cocoa/evtloop.mm diff --git a/src/cocoa/evtloop.mm b/src/cocoa/evtloop.mm index 4a3a94be67..7a6e393670 100644 --- a/src/cocoa/evtloop.mm +++ b/src/cocoa/evtloop.mm @@ -48,8 +48,6 @@ private: // wxEventLoop running and exiting // ---------------------------------------------------------------------------- -wxEventLoop *wxEventLoopBase::ms_activeLoop = NULL; - wxEventLoop::~wxEventLoop() { wxASSERT_MSG( !m_impl, _T("should have been deleted in Run()") ); @@ -66,6 +64,8 @@ int wxEventLoop::Run() [[NSApplication sharedApplication] run]; + OnExit(); + int exitcode = m_impl->GetExitCode(); delete m_impl; m_impl = NULL;