X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e0ecdd955941a360c65a9f375587a81b0695d38..05e00ac5ef410707da86d98786cbb268100a7337:/wxPython/src/_dataobj.i diff --git a/wxPython/src/_dataobj.i b/wxPython/src/_dataobj.i index cf6baf07ef..8c9c4bb5a2 100644 --- a/wxPython/src/_dataobj.i +++ b/wxPython/src/_dataobj.i @@ -791,7 +791,8 @@ public: PyObject* obj; bool blocked = wxPyBeginBlockThreads(); obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); - wxPyEndBlockThreads(blocked); + wxPyEndBlockThreads(blocked); + return obj; } } };