diff --git a/lib/sbdb/weakhash.rb b/lib/sbdb/weakhash.rb index d72dadb..03e53f1 100644 --- a/lib/sbdb/weakhash.rb +++ b/lib/sbdb/weakhash.rb @@ -35,6 +35,7 @@ class WeakHash ObjectSpace.define_finalizer(value, @reclaim_value) ObjectSpace.define_finalizer(key, @reclaim_key) + value end def [] key