X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c368d904fc27d35ae1e533155e2154dc496432e4..f222db9ce69b094c7657a9e98e1a795be1adf1ac:/wxPython/src/filesys.i diff --git a/wxPython/src/filesys.i b/wxPython/src/filesys.i index 7fc6c420c6..99df7c6049 100644 --- a/wxPython/src/filesys.i +++ b/wxPython/src/filesys.i @@ -75,7 +75,9 @@ // Py_DECREF(arg); // // set ThisOwn -// PyObject_SetAttrString($target, "thisown", PyInt_FromLong(1)); +// PyObject* one = PyInt_FromLong(1); +// PyObject_SetAttrString($target, "thisown", one); +// Py_DECREF(one); // } // } else { // Py_INCREF(Py_None);