Skip to content

Commit

Permalink
Fix removing temporary file. Fixes #160.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Aug 28, 2013
1 parent f7d6d05 commit bbe1f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mini_magick.rb
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def run(command_builder)

def destroy!
return if @tempfile.nil?
File.unlink(@tempfile.path) if File.exists?(@tempfile.path)
File.unlink(path) if File.exists?(path)
@tempfile = nil
end

Expand Down

0 comments on commit bbe1f94

Please sign in to comment.