More memory leaks fixed - in IDProp, Bone.head, tail, matrix, ob.DupObjects (my fault) and in Effect module as well as a few others.

Also stopped using Py_BuildValue for strings, ints and floats.
This commit is contained in:
2007-05-26 04:39:31 +00:00
parent ea9b3dc387
commit 30dd4fafd1
19 changed files with 120 additions and 97 deletions

View File

@@ -172,7 +172,7 @@ static PyObject *Point_item(PointObject * self, int i)
return EXPP_ReturnPyObjError(PyExc_IndexError,
"point[attribute]: array index out of range\n");
return Py_BuildValue("f", self->coord[i]);
return PyFloat_FromDouble( (double)self->coord[i] );
}
//----------------------------object[]-------------------------