Kaydet (Commit) a6aa71de authored tarafından Jack Jansen's avatar Jack Jansen

Oops: we used PyMem_DEL() to clean up objects, and that's a problem since

pymalloc, apparently. Fixed, but this means all bgen-generated modules will
have to be re-generated.

I hope (and expect) that the pymalloc fixes aren't bugfix candidates, because
if they are this is one too.
üst bbeb1e6d
...@@ -123,7 +123,7 @@ class ObjectDefinition(GeneratorGroup): ...@@ -123,7 +123,7 @@ class ObjectDefinition(GeneratorGroup):
Output("static void %s_dealloc(%s *self)", self.prefix, self.objecttype) Output("static void %s_dealloc(%s *self)", self.prefix, self.objecttype)
OutLbrace() OutLbrace()
self.outputCleanupStructMembers() self.outputCleanupStructMembers()
Output("PyMem_DEL(self);") Output("PyObject_Del(self);")
OutRbrace() OutRbrace()
def outputCleanupStructMembers(self): def outputCleanupStructMembers(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment