]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/_controls_wrap.cpp
Change the text object to a message about the new OGL.
[wxWidgets.git] / wxPython / src / gtk / _controls_wrap.cpp
index dbfd8c5476390ad24ae95e3ef8c31c02ee508904..fbc728ad74226849a669e31a94ea39cc95ba957c 100644 (file)
@@ -898,6 +898,7 @@ PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *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;