]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed reference leak in wx.gizmos.TreeListCtrl.GetSelections.
authorRobin Dunn <robin@alldunn.com>
Thu, 30 Mar 2006 01:38:38 +0000 (01:38 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 30 Mar 2006 01:38:38 +0000 (01:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/contrib/gizmos/gizmos.i

index 71dccd36c63239672e262756b5cb00d86e692e67..825709f528c617d0e91d14071262b238ff5f5d95 100644 (file)
@@ -768,6 +768,7 @@ public:
                 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
                 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
                 PyList_Append(rval, item);
+                Py_DECREF(item);
             }
             wxPyEndBlockThreads(blocked);
             return rval;