X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07b2e1cd389c16c05d74adedf92fda3ca785f2bd..41b0a1139d039c486983ad3ca020217f17fd7414:/wxPython/src/helpers.cpp?ds=inline diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index 187a0673c8..9c4cb6ecda 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -1306,7 +1306,7 @@ PyObject* wxArrayString2PyList_helper(const wxArrayString& arr) { for (size_t i=0; i < arr.GetCount(); i++) { PyObject* str = PyString_FromString(arr[i].c_str()); PyList_Append(list, str); - // TODO: Check refcount on str... + Py_DECREF(str); } return list; }