Bugfix #3895: Call to PyString_FromString() wasn't being Py_DECREF()'ed,

causing a memory leak.
This commit is contained in:
Ken Hughes
2006-03-10 21:05:30 +00:00
parent 52dfa31cb8
commit 2a4dc7654c

View File

@@ -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);