X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/281c54cc42f9ca2578f08218b1eed8d5208db8f7..5145a8cfe50812bdf31df33901b13bcc1e17c11b:/wxPython/src/helpers.cpp diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index 7bfbb60175..8da21b5270 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -1822,6 +1822,7 @@ PyObject* wxPy_ConvertList(wxListBase* listbase) { wxObj = node->GetData(); pyObj = wxPyMake_wxObject(wxObj,false); PyList_Append(pyList, pyObj); + Py_DECREF(pyObj); // the Append also does an INCREF, that's one more than we need. node = node->GetNext(); } wxPyEndBlockThreads(blocked);