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:
@@ -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[]-------------------------
|
||||
|
||||
Reference in New Issue
Block a user