]> granicus.if.org Git - python/commitdiff
prevent ref cycles by removing bound method on close()
authorBenjamin Peterson <benjamin@python.org>
Thu, 30 Apr 2009 00:23:11 +0000 (00:23 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 30 Apr 2009 00:23:11 +0000 (00:23 +0000)
Lib/aifc.py

index 8e4f864495d42f90e529f9b6ffcd8a2c0276adb2..f9db3f483555e23aaa9cf6093903070b343cd225 100644 (file)
@@ -732,6 +732,8 @@ class Aifc_write:
         if self._comp:
             self._comp.CloseCompressor()
             self._comp = None
+        # Prevent ref cycles
+        self._convert = None
         self._file.flush()
         self._file = None