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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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################################
|
||||
|
||||
Reference in New Issue
Block a user