diff options
Diffstat (limited to 'lib/tempfile.rb')
-rw-r--r-- | lib/tempfile.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb index f5dc801b21..2169a20ec5 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -77,7 +77,8 @@ class Tempfile < SimpleDelegator def _close # :nodoc: @tmpfile.close if @tmpfile @data[1] = @tmpfile = nil - end + @data = @tmpname = nil + end protected :_close # Closes the file. If the optional flag is true, unlinks the file |