lib/theatre/callback_definition_loader.rb in adhearsion-1.2.5 vs lib/theatre/callback_definition_loader.rb in adhearsion-1.2.6
- old
+ new
@@ -24,9 +24,11 @@
#
def load_events_file(file)
file = File.open(file) if file.kind_of? String
instance_eval file.read, file.path
self
+ ensure
+ file.close
end
##
# Parses the given Ruby source code and returns this object.
#