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:
2011-02-24 05:46:57 +00:00
parent b357033f5e
commit fbd9364944
8 changed files with 181 additions and 273 deletions

View File

@@ -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);