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

@@ -425,8 +425,7 @@ static PyObject *KeyBlock_getCurval( BPy_KeyBlock * self ) {
}
static PyObject *KeyBlock_getName( BPy_KeyBlock * self ) {
PyObject *name = Py_BuildValue( "s", self->keyblock->name);
return name;
return PyString_FromString(self->keyblock->name);
}
static PyObject *KeyBlock_getPos( BPy_KeyBlock * self ){
@@ -442,7 +441,7 @@ static PyObject *KeyBlock_getSlidermax( BPy_KeyBlock * self ){
}
static PyObject *KeyBlock_getVgroup( BPy_KeyBlock * self ){
return Py_BuildValue( "s", self->keyblock->vgroup);
return PyString_FromString(self->keyblock->vgroup);
}
static int KeyBlock_setName( BPy_KeyBlock * self, PyObject * args ){