make sure to delete tempfiles

This commit is contained in:
r888888888
2014-11-04 13:06:16 -08:00
parent 1fffc2977f
commit a071539487

View File

@@ -10,6 +10,9 @@ module Iqdb
tempfile = Tempfile.new("iqdb-#{$PROCESS_ID}")
@download = Downloads::File.new(source, tempfile.path)
@download.download!
ensure
tempfile.close
tempfile.unlink
end
def find_similar