From f4d2cb599e9aed1ff10ea1ecb23c8a0f97eea535 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 10 Nov 2003 22:32:40 +0000 Subject: [PATCH] Guard against double cleanup git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@24514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/helpers.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;