bugfix: [ #3009 ] possible memory leak in Mathutils

fixed by patch [ #3013 ] patch for memleak in vector
Submitted By: Ken Hughes (khughes)
This commit is contained in:
Stephen Swaney
2005-09-12 06:18:45 +00:00
parent 24ee7278b9
commit a4ca8267cf
5 changed files with 5 additions and 5 deletions

View File

@@ -410,6 +410,6 @@ PyObject *newEulerObject(float *eul, int type)
}else{ //bad type
return NULL;
}
return (PyObject *) EXPP_incr_ret((PyObject *)self);
return (PyObject *) self;
}

View File

@@ -837,5 +837,5 @@ PyObject *newMatrixObject(float *mat, int rowSize, int colSize, int type)
}else{ //bad type
return NULL;
}
return (PyObject *) EXPP_incr_ret((PyObject *)self);
return (PyObject *) self;
}

View File

@@ -539,5 +539,5 @@ PyObject *newPointObject(float *coord, int size, int type)
}else{ //bad type
return NULL;
}
return (PyObject *) EXPP_incr_ret((PyObject *)self);
return (PyObject *) self;
}

View File

@@ -587,5 +587,5 @@ PyObject *newQuaternionObject(float *quat, int type)
}else{ //bad type
return NULL;
}
return (PyObject *) EXPP_incr_ret((PyObject *)self);
return (PyObject *) self;
}

View File

@@ -671,7 +671,7 @@ PyObject *newVectorObject(float *vec, int size, int type)
}else{ //bad type
return NULL;
}
return (PyObject *) EXPP_incr_ret((PyObject *)self);
return (PyObject *) self;
}
//#############################DEPRECATED################################