revert part of own commit r35117 which modified mathutils initialization functions, found this could be done in a better way which doesnt have to deal with partly initialize instances being freed.
This commit is contained in:
@@ -341,10 +341,7 @@ void BaseMathObject_dealloc(BaseMathObject *self)
|
||||
{
|
||||
/* only free non wrapped */
|
||||
if(self->wrapped != Py_WRAP) {
|
||||
/* the ONLY time this should be NULL is when the value failed to initialize */
|
||||
if(self->data) {
|
||||
PyMem_Free(self->data);
|
||||
}
|
||||
PyMem_Free(self->data);
|
||||
}
|
||||
|
||||
BaseMathObject_clear(self);
|
||||
|
||||
Reference in New Issue
Block a user