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>2011-06-17 09:56:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-06-17 09:56:17 +0400
commit775ea4de9297135805d053753c937b9c25d3d9bc (patch)
tree6cf6eb95e6c8a684344ece865e62a2b2fb95aba3 /source/blender/python/generic/IDProp.c
parent7cbc4c0dd7cf5c69eb74b36cd01c8321ad1a085f (diff)
fix for memory leak converting an idproperty group into a dict
Diffstat (limited to 'source/blender/python/generic/IDProp.c')
-rw-r--r--source/blender/python/generic/IDProp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/python/generic/IDProp.c b/source/blender/python/generic/IDProp.c
index f6eb46796c9..2543d34f58c 100644
--- a/source/blender/python/generic/IDProp.c
+++ b/source/blender/python/generic/IDProp.c
@@ -575,6 +575,7 @@ static PyObject *BPy_IDGroup_MapDataToPy(IDProperty *prop)
return NULL;
PyDict_SetItemString(dict, loop->name, wrap);
+ Py_DECREF(wrap);
}
return dict;
}