diff options
author | Ken Hughes <khughes@pacific.edu> | 2006-03-11 00:05:30 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2006-03-11 00:05:30 +0300 |
commit | 2a4dc7654c6966cff0d86b7a0caf5befbcf93f31 (patch) | |
tree | 559ce1f0c6c016ade5979f12c91200f98b5077b0 /source | |
parent | 52dfa31cb84379f33107208cae96d81fea10d2f4 (diff) |
Bugfix #3895: Call to PyString_FromString() wasn't being Py_DECREF()'ed,
causing a memory leak.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/api2_2x/Pose.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Pose.c b/source/blender/python/api2_2x/Pose.c index b5a96de5dc6..8ac2ad56aeb 100644 --- a/source/blender/python/api2_2x/Pose.c +++ b/source/blender/python/api2_2x/Pose.c @@ -116,8 +116,8 @@ static int PoseBoneMapping_Init(PyObject *dictionary, ListBase *posechannels){ if (!py_posechannel) return -1; - if(PyDict_SetItem(dictionary, - PyString_FromString(pchan->name), py_posechannel) == -1){ + if(PyDict_SetItemString(dictionary, + pchan->name, py_posechannel) == -1){ return -1; } Py_DECREF(py_posechannel); |