]> git.saurik.com Git - wxWidgets.git/commitdiff
*** empty log message ***
authorRobin Dunn <robin@alldunn.com>
Mon, 11 Dec 2000 03:20:07 +0000 (03:20 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 11 Dec 2000 03:20:07 +0000 (03:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/msw/misc2.cpp

index df596451fa12a32d386ab6f42dbf73e71dcf175c..55aba98c86bb8e7123e1d3272de4ef67d83897cb 100644 (file)
@@ -4960,7 +4960,9 @@ static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args,
             Py_DECREF(arg);
 
             // set ThisOwn
-            PyObject_SetAttrString(_resultobj, "thisown", PyInt_FromLong(1));
+            PyObject* one = PyInt_FromLong(1);
+            PyObject_SetAttrString(_resultobj, "thisown", one);
+            Py_DECREF(one);
         }
     } else {
         Py_INCREF(Py_None);
@@ -5013,7 +5015,9 @@ static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args,
             Py_DECREF(arg);
 
             // set ThisOwn
-            PyObject_SetAttrString(_resultobj, "thisown", PyInt_FromLong(1));
+            PyObject* one = PyInt_FromLong(1);
+            PyObject_SetAttrString(_resultobj, "thisown", one);
+            Py_DECREF(one);
         }
     } else {
         Py_INCREF(Py_None);