fix for memory leak converting an idproperty group into a dict
authorCampbell Barton <ideasman42@gmail.com>
Fri, 17 Jun 2011 05:56:17 +0000 (05:56 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 17 Jun 2011 05:56:17 +0000 (05:56 +0000)
source/blender/python/generic/IDProp.c

index f6eb467..2543d34 100644 (file)
@@ -575,6 +575,7 @@ static PyObject *BPy_IDGroup_MapDataToPy(IDProperty *prop)
                                        return NULL;
 
                                PyDict_SetItemString(dict, loop->name, wrap);
+                               Py_DECREF(wrap);
                        }
                        return dict;
                }