diff options
-rw-r--r-- | Tools/bgen/bgen/bgenObjectDefinition.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/bgen/bgen/bgenObjectDefinition.py b/Tools/bgen/bgen/bgenObjectDefinition.py index 71cf21d..87ae40f 100644 --- a/Tools/bgen/bgen/bgenObjectDefinition.py +++ b/Tools/bgen/bgen/bgenObjectDefinition.py @@ -123,7 +123,7 @@ class ObjectDefinition(GeneratorGroup): Output("static void %s_dealloc(%s *self)", self.prefix, self.objecttype) OutLbrace() self.outputCleanupStructMembers() - Output("PyMem_DEL(self);") + Output("PyObject_Del(self);") OutRbrace() def outputCleanupStructMembers(self): |