]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/helpers.cpp
Added wx.StandardPaths.GetTmpDir
[wxWidgets.git] / wxPython / src / helpers.cpp
index 7bfbb60175acb9b46afaeba013c7fb0f7d0598cb..8da21b52708191644003fec073eca43b6b676148 100644 (file)
@@ -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);