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
This commit is contained in:
@@ -489,8 +489,10 @@ PyObject* __wxStart(PyObject* /* self */, PyObject* args)
|
|||||||
|
|
||||||
void __wxCleanup() {
|
void __wxCleanup() {
|
||||||
wxPyDoingCleanup = TRUE;
|
wxPyDoingCleanup = TRUE;
|
||||||
if (wxPyDoCleanup)
|
if (wxPyDoCleanup) {
|
||||||
|
wxPyDoCleanup = FALSE;
|
||||||
wxEntryCleanup();
|
wxEntryCleanup();
|
||||||
|
}
|
||||||
#ifdef WXP_WITH_THREAD
|
#ifdef WXP_WITH_THREAD
|
||||||
delete wxPyTMutex;
|
delete wxPyTMutex;
|
||||||
wxPyTMutex = NULL;
|
wxPyTMutex = NULL;
|
||||||
|
Reference in New Issue
Block a user