]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_display.i
update from herbert breunung
[wxWidgets.git] / wxPython / src / _display.i
index f0e9fbbb40d07c1d5f02b2e0b8de585aeab9ea71..db32d011a8456433925a0f31839f5f476bc7f4ca 100644 (file)
@@ -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;