From 2518d3c1c0b907b1cabdaa647c7affaa01ffca63 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 30 Apr 2009 00:23:11 +0000 Subject: prevent ref cycles by removing bound method on close() --- Lib/aifc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/aifc.py b/Lib/aifc.py index 8e4f864..f9db3f4 100644 --- a/Lib/aifc.py +++ b/Lib/aifc.py @@ -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 -- cgit v0.12