From: Benjamin Peterson Date: Thu, 30 Apr 2009 00:23:11 +0000 (+0000) Subject: prevent ref cycles by removing bound method on close() X-Git-Tag: v2.7a1~1330 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2518d3c1c0b907b1cabdaa647c7affaa01ffca63;p=python prevent ref cycles by removing bound method on close() --- diff --git a/Lib/aifc.py b/Lib/aifc.py index 8e4f864495..f9db3f4835 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