lib/bulldog/attachment/video.rb in bulldog-0.0.5 vs lib/bulldog/attachment/video.rb in bulldog-0.0.6
- old
+ new
@@ -78,9 +78,16 @@
@original_audio_tracks
end
storable_attribute :duration , :per_style => true, :memoize => true
+ def unload
+ super
+ instance_variables.grep(/@original_/).each do |name|
+ instance_variable_set(name, nil)
+ end
+ end
+
protected # ---------------------------------------------------
#
# Return the default processor class to use for this attachment.
#