commit | 2518d3c1c0b907b1cabdaa647c7affaa01ffca63 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Apr 30 00:23:11 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Apr 30 00:23:11 2009 +0000 |
tree | d46bb9d02fa3550c49b786b0f10717bfc1b17030 | |
parent | 7c7250da45cb81d88d19087e135c94d48c94aee0 [diff] [blame] |
prevent ref cycles by removing bound method on close()
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 @@ if self._comp: self._comp.CloseCompressor() self._comp = None + # Prevent ref cycles + self._convert = None self._file.flush() self._file = None