Commit 02588111 authored by Benjamin Peterson's avatar Benjamin Peterson

actually close files instead of leaving it to the gc #5955

parent dd266811
......@@ -347,7 +347,7 @@ class Aifc_read:
if self._decomp:
self._decomp.CloseDecompressor()
self._decomp = None
self._file = None
self._file.close()
def tell(self):
return self._soundpos
......@@ -734,8 +734,7 @@ class Aifc_write:
self._comp = None
# Prevent ref cycles
self._convert = None
self._file.flush()
self._file = None
self._file.close()
#
# Internal methods.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment