lib/gnawrnip/photographer.rb in gnawrnip-0.2.4 vs lib/gnawrnip/photographer.rb in gnawrnip-0.2.5
- old
+ new
@@ -12,10 +12,10 @@
#
# Close tempfiles.
#
def discard!
- frames.each(&:close!)
+ frames.compact.each(&:close!)
reset!
end
def frames
@frames ||= []