prevent ref cycles by removing bound method on close()

This commit is contained in:
Benjamin Peterson 2009-04-30 00:23:11 +00:00
parent 7c7250da45
commit 2518d3c1c0
1 changed files with 2 additions and 0 deletions

View File

@ -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