X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e0ecdd955941a360c65a9f375587a81b0695d38..015fd9ef4833ec3d8b0043a1c7e448c8be4f734a:/wxPython/src/_dataobj.i?ds=inline 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; } } };