wasnt decref'ing items I got from PySequence_GetItem for PolyFill or ob.join() fixed and tested, memory dosent increse when used in a large loop.

This commit is contained in:
2006-07-02 10:37:24 +00:00
parent ae59f05c85
commit f2d80ee097
2 changed files with 28 additions and 24 deletions

View File

@@ -2077,6 +2077,7 @@ static PyObject *Object_join( BPy_Object * self, PyObject * args )
} else {
/* List item is an object, is it the same type? */
child = ( Object * ) Object_FromPyObject( py_child );
Py_DECREF (py_child);
if (parent->type == child->type) {
if (object_in_scene( child, G.scene )==NULL) {