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-05-28 01:33:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-05-28 01:33:48 +0400
commitbcc314311969959df482dd5525703533d875d023 (patch)
tree5e5a622471e0214b3ba481ba503ecee1cfa6b06c /source/blender/python/api2_2x/Font.c
parentd9e85385fd083ef11ccc4ffa06f9120599f18510 (diff)
more memory leak fixes, though only a few are likely to happen
Diffstat (limited to 'source/blender/python/api2_2x/Font.c')
-rw-r--r--source/blender/python/api2_2x/Font.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Font.c b/source/blender/python/api2_2x/Font.c
index f7e7b2a2c40..08af60fd9e0 100644
--- a/source/blender/python/api2_2x/Font.c
+++ b/source/blender/python/api2_2x/Font.c
@@ -136,11 +136,12 @@ static PyObject *M_Font_Get( PyObject * self, PyObject * args )
while( vfont_iter ) {
pyobj = Font_CreatePyObject( vfont_iter );
- if( !pyobj )
+ if( !pyobj ) {
+ Py_DECREF(vfontlist);
return ( EXPP_ReturnPyObjError
( PyExc_MemoryError,
"couldn't create Object" ) );
-
+ }
PyList_SET_ITEM( vfontlist, index, pyobj );
vfont_iter = vfont_iter->id.next;