summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/aifc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/aifc.py b/Lib/aifc.py
index 36312b3..702a451 100644
--- a/Lib/aifc.py
+++ b/Lib/aifc.py
@@ -690,6 +690,8 @@ class Aifc_write:
self._datalength != self._datawritten or \
self._marklength:
self._patchheader()
+ # Prevent ref cycles
+ self._convert = None
self._file.flush()
self._file = None