missing decref.. win Window.RedrawAll() pointed out by ken
authorCampbell Barton <ideasman42@gmail.com>
Sat, 16 Jun 2007 13:57:39 +0000 (13:57 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 16 Jun 2007 13:57:39 +0000 (13:57 +0000)
source/blender/python/api2_2x/Window.c

index 35b26051cf90eab3fcb6773c62fecb9ccfb0ba4e..5538d9d3d881b33b6a7b019452f72668f58b1765 100644 (file)
@@ -425,7 +425,10 @@ PyObject *M_Window_Redraw( PyObject * self, PyObject * args )
 /*****************************************************************************/
 static PyObject *M_Window_RedrawAll( PyObject * self, PyObject * args )
 {
-       return M_Window_Redraw( self, Py_BuildValue( "(i)", -1 ) );
+       PyObject *arg = Py_BuildValue( "(i)", -1 );
+       PyObject *ret = M_Window_Redraw( self, arg );
+       Py_DECREF(arg);
+       return ret;
 }
 
 /*****************************************************************************/