]> git.saurik.com Git - wxWidgets.git/commitdiff
the Append also does an INCREF, that's one more than we need.
authorRobin Dunn <robin@alldunn.com>
Sun, 22 Oct 2006 04:13:04 +0000 (04:13 +0000)
committerRobin Dunn <robin@alldunn.com>
Sun, 22 Oct 2006 04:13:04 +0000 (04:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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);