diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index ba02470b21..eff9d323e6 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -489,8 +489,10 @@ PyObject* __wxStart(PyObject* /* self */, PyObject* args) void __wxCleanup() { wxPyDoingCleanup = TRUE; - if (wxPyDoCleanup) + if (wxPyDoCleanup) { + wxPyDoCleanup = FALSE; wxEntryCleanup(); + } #ifdef WXP_WITH_THREAD delete wxPyTMutex; wxPyTMutex = NULL;