]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/gizmos/gtk/gizmos_wrap.cpp
We no longer use the xml files, (and havn't for some time) so stop
[wxWidgets.git] / wxPython / contrib / gizmos / gtk / gizmos_wrap.cpp
index b0fb939d708d0e14635398c61ba2ecc97adbd3f3..909d5d9d1172dd5ae261fedca09fa50d4ae34453 100644 (file)
@@ -3057,6 +3057,7 @@ SWIGINTERN PyObject *wxPyTreeListCtrl_GetSelections(wxPyTreeListCtrl *self){
                 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;