lib/ffi/ruby_object.rb in ffi-libfuse-0.0.1.rctest12 vs lib/ffi/ruby_object.rb in ffi-libfuse-0.1.0.rc20220550
- old
+ new
@@ -72,10 +72,10 @@
def cache
@cache ||= {}
end
def finalizer(*keys)
- proc { keys.each { cache.delete(key) } }
+ proc { keys.each { |k| cache.delete(k) } }
end
def store(obj)
ptr = FFI::MemoryPointer.new(:long)
ptr.put(:long, 0, obj.object_id)