From 9ee2a1ee095a1b9ce02b5ac30a50a4446f513ddc Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Fri, 17 Jun 2005 05:37:24 +0000 Subject: [PATCH] One file missing from prevous commit. This one is even worse, decref'ed a borrowed reference. --- source/blender/python/api2_2x/Image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/python/api2_2x/Image.c b/source/blender/python/api2_2x/Image.c index 87d7bfbcc8b..1530eeb80a2 100644 --- a/source/blender/python/api2_2x/Image.c +++ b/source/blender/python/api2_2x/Image.c @@ -765,7 +765,7 @@ static int Image_setAttr( BPy_Image * self, char *name, PyObject * value ) else if( strcmp( name, "yrep" ) == 0 ) error = Image_setYRep( self, valtuple ); else { /* Error: no such member in the Image object structure */ - Py_DECREF( value ); + /*Py_DECREF( value ); borrowed ref, no need to decref */ Py_DECREF( valtuple ); return ( EXPP_ReturnIntError( PyExc_KeyError, "attribute not found or immutable" ) );