X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd6d1477e5c3ba58e021d6df39df5cf7bb58de3a..015fd9ef4833ec3d8b0043a1c7e448c8be4f734a:/wxPython/src/my_typemaps.i diff --git a/wxPython/src/my_typemaps.i b/wxPython/src/my_typemaps.i index 9e4c01a0c2..f1bfc3cd7d 100644 --- a/wxPython/src/my_typemaps.i +++ b/wxPython/src/my_typemaps.i @@ -11,17 +11,6 @@ ///////////////////////////////////////////////////////////////////////////// -//--------------------------------------------------------------------------- -// Tell SWIG to wrap all the wrappers with our thread protection - -%exception { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - $action - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; -} - - //---------------------------------------------------------------------- // Typemaps to convert a list of items to an int (size) and an array @@ -103,6 +92,7 @@ $1 = new wxMemoryBuffer(len); temp = True; memcpy($1->GetData(), str, len); + $1->SetDataLen(len); } %typemap(freearg) wxMemoryBuffer& {