Commits

Armin Rigo  committed 8896103

Fix pyexpat.

  • Participants
  • Parent commits da192ff
  • Branches gc-del

Comments (0)

Files changed (1)

File pypy/module/pyexpat/interp_pyexpat.py

             CallbackData(space, self))
         XML_SetUserData(self.itself, rffi.cast(rffi.VOIDP, self.id))
 
-    def __del__(self):
+        self.register_finalizer()
+
+    def invoke_finalizer(self):
         if XML_ParserFree: # careful with CPython interpreter shutdown
             XML_ParserFree(self.itself)
         if global_storage: