]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/evtloop.cpp
changed wxArrayString::m_pItems from wxChar* to const wxChar*, the strings are not...
[wxWidgets.git] / src / mgl / evtloop.cpp
index 10f6b5d12eb2cff4d0d4989daa98f731dd5b4f46..8135bf6a5d68296e578c7a865f924756aa976351 100644 (file)
     #include "wx/window.h"
     #include "wx/app.h"
     #include "wx/thread.h"
+    #include "wx/timer.h"
 #endif //WX_PRECOMP
 
 #include "wx/evtloop.h"
-#include "wx/timer.h"
 #include "wx/mgl/private.h"
 
 // ----------------------------------------------------------------------------
@@ -104,8 +104,6 @@ bool wxEventLoopImpl::SendIdleEvent()
 // wxEventLoop running and exiting
 // ----------------------------------------------------------------------------
 
-wxEventLoop *wxEventLoopBase::ms_activeLoop = NULL;
-
 wxEventLoop::~wxEventLoop()
 {
     wxASSERT_MSG( !m_impl, _T("should have been deleted in Run()") );
@@ -139,6 +137,8 @@ int wxEventLoop::Run()
         }
     }
 
+    OnExit();
+
     int exitcode = m_impl->GetExitCode();
     delete m_impl;
     m_impl = NULL;