From 77e8ad46842ef4b211edd37329c3ebeec0cb54f9 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Thu, 19 Dec 2002 23:34:40 +0000 Subject: Always use self->ob_type->tp_free when freeing an object. --- Tools/bgen/bgen/bgenObjectDefinition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/bgen/bgen/bgenObjectDefinition.py b/Tools/bgen/bgen/bgenObjectDefinition.py index 510b9b8..fd60d61 100644 --- a/Tools/bgen/bgen/bgenObjectDefinition.py +++ b/Tools/bgen/bgen/bgenObjectDefinition.py @@ -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): -- cgit v0.12