Make sure output raw file is deleted at end of capture

Before it being closed on condition of the capture controller being garbage
collected, which we can't really count on. This was resulting in lots of
huge files being left in /tmp/eideticker between captures.
This commit is contained in:
William Lachance 2014-08-05 16:49:47 -04:00
Родитель 195b3e0839
Коммит 648853e0d7
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -419,3 +419,7 @@ class CaptureController(object):
shutil.rmtree(self.outputdir)
shutil.rmtree(rewritten_imagedir)
if self.output_raw_file:
# closing the file should delete it
self.output_raw_file.close()
self.output_raw_file = None