From faca2e452feedcab0daddd333f8e5473fa96949a Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 30 Mar 2006 01:38:38 +0000 Subject: [PATCH] Fixed reference leak in wx.gizmos.TreeListCtrl.GetSelections. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/contrib/gizmos/gizmos.i | 1 + 1 file changed, 1 insertion(+) diff --git a/wxPython/contrib/gizmos/gizmos.i b/wxPython/contrib/gizmos/gizmos.i index 71dccd36c6..825709f528 100644 --- a/wxPython/contrib/gizmos/gizmos.i +++ b/wxPython/contrib/gizmos/gizmos.i @@ -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; -- 2.45.2