]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/gizmos/gizmos.i
wx.ProgressDialog.Update now returns two values.
[wxWidgets.git] / 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;