git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42227
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxObj = node->GetData();
pyObj = wxPyMake_wxObject(wxObj,false);
PyList_Append(pyList, pyObj);
wxObj = node->GetData();
pyObj = wxPyMake_wxObject(wxObj,false);
PyList_Append(pyList, pyObj);
+ Py_DECREF(pyObj); // the Append also does an INCREF, that's one more than we need.
node = node->GetNext();
}
wxPyEndBlockThreads(blocked);
node = node->GetNext();
}
wxPyEndBlockThreads(blocked);