Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-06-16 17:57:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-06-16 17:57:39 +0400
commit770291b9ea1ec03d98b6bae4fd2a2d3f0091be41 (patch)
treefc3e1c973e293a6442840e68757bd6ab2d7ea8f8 /source/blender
parent84749aa3ff39af08cdccfea462fb4a6a266ca7b8 (diff)
missing decref.. win Window.RedrawAll() pointed out by ken
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/python/api2_2x/Window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Window.c b/source/blender/python/api2_2x/Window.c
index 35b26051cf9..5538d9d3d88 100644
--- a/source/blender/python/api2_2x/Window.c
+++ b/source/blender/python/api2_2x/Window.c
@@ -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;
}
/*****************************************************************************/