]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed compile bug for when threads are turned off
authorRobin Dunn <robin@alldunn.com>
Fri, 1 Feb 2002 01:18:46 +0000 (01:18 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 1 Feb 2002 01:18:46 +0000 (01:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/helpers.cpp

index 6a196331a39b8e4aa7aee0973f53e43971c24259..13f93b78c388f8dcc879cfa56910b0f37790743c 100644 (file)
@@ -223,11 +223,13 @@ PyObject* __wxStart(PyObject* /* self */, PyObject* args)
 
 void __wxCleanup() {
     wxEntryCleanup();
+#ifdef WXP_WITH_THREAD
     delete wxPyTMutex;
     wxPyTMutex = NULL;
     wxPyTStates->Empty();
     delete wxPyTStates;
     wxPyTStates = NULL;
+#endif
 }