X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d07d2bc9d05408c58b76c53a0a291915b88e5064..3d4875664f6242d1580db047173d3075b047435e:/wxPython/src/_display.i diff --git a/wxPython/src/_display.i b/wxPython/src/_display.i index f0e9fbbb40..db32d011a8 100644 --- a/wxPython/src/_display.i +++ b/wxPython/src/_display.i @@ -167,6 +167,7 @@ function is not supported at all on this platform.", ""); wxVideoMode* m = new wxVideoMode(arr.Item(i)); PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); PyList_Append(pyList, pyObj); + Py_DECREF(pyObj); } wxPyEndBlockThreads(blocked); return pyList;