Always use self->ob_type->tp_free when freeing an object.

This commit is contained in:
Jack Jansen 2002-12-19 23:34:40 +00:00
parent 6810f92d4d
commit 77e8ad4684

View file

@ -137,7 +137,7 @@ class ObjectDefinition(GeneratorGroup):
if self.basetype:
Output("%s.tp_dealloc(self)", self.basetype)
else:
Output("PyObject_Del(self);")
Output("self->ob_type->tp_free((PyObject *)self);")
OutRbrace()
def outputCleanupStructMembers(self):