[Python-checkins] r72135 - python/trunk/Lib/aifc.py

benjamin.peterson python-checkins at python.org
Thu Apr 30 02:23:11 CEST 2009


Author: benjamin.peterson
Date: Thu Apr 30 02:23:11 2009
New Revision: 72135
Log:
prevent ref cycles by removing bound method on close()
Modified:
 python/trunk/Lib/aifc.py
Modified: python/trunk/Lib/aifc.py
==============================================================================
--- python/trunk/Lib/aifc.py	(original)
+++ python/trunk/Lib/aifc.py	Thu Apr 30 02:23:11 2009
@@ -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
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /