X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07c99b2608704fd8216760040d6f90db1a4842a1..761df41e86ceeed56d32c038a6c9f88554d4f47a:/wxPython/src/windows.i diff --git a/wxPython/src/windows.i b/wxPython/src/windows.i index bd9e38110e..29a0fc72f9 100644 --- a/wxPython/src/windows.i +++ b/wxPython/src/windows.i @@ -123,7 +123,7 @@ public: wxPyValidator* ptr = NULL; wxPyValidator* self = (wxPyValidator*)this; - wxPyTState* state = wxPyBeginBlockThreads(); + wxPyBeginBlockThreads(); if (self->m_myInst.findCallback("Clone")) { PyObject* ro; ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); @@ -132,7 +132,7 @@ public: Py_DECREF(ro); } } - wxPyEndBlockThreads(state); + wxPyEndBlockThreads(); // This is very dangerous!!! But is the only way I could find // to squash a memory leak. Currently it is okay, but if the