missing decref.. win Window.RedrawAll() pointed out by ken

This commit is contained in:
2007-06-16 13:57:39 +00:00
parent 84749aa3ff
commit 770291b9ea

View 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;
}
/*****************************************************************************/