[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [10947] branches/2-44-stable/blender/ source/blender/python/api2_2x/Window.c: missing decref, pointed out by ken
Campbell Barton
cbarton at metavr.com
Sat Jun 16 15:56:54 CEST 2007
Revision: 10947
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=10947
Author: campbellbarton
Date: 2007-06-16 15:56:54 +0200 (Sat, 16 Jun 2007)
Log Message:
-----------
missing decref, pointed out by ken
Modified Paths:
--------------
branches/2-44-stable/blender/source/blender/python/api2_2x/Window.c
Modified: branches/2-44-stable/blender/source/blender/python/api2_2x/Window.c
===================================================================
--- branches/2-44-stable/blender/source/blender/python/api2_2x/Window.c 2007-06-16 13:24:25 UTC (rev 10946)
+++ branches/2-44-stable/blender/source/blender/python/api2_2x/Window.c 2007-06-16 13:56:54 UTC (rev 10947)
@@ -423,7 +423,10 @@
/*****************************************************************************/
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;
}
/*****************************************************************************/
More information about the Bf-blender-cvs
mailing list