diff options
Diffstat (limited to 'gee/hashmap.vala')
-rw-r--r-- | gee/hashmap.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gee/hashmap.vala b/gee/hashmap.vala index b1767e3..83243a7 100644 --- a/gee/hashmap.vala +++ b/gee/hashmap.vala @@ -341,6 +341,12 @@ public class Gee.HashMap<K,V> : Gee.AbstractMap<K,V> { key_hash = hash; entry = null; } + + ~Node () { + if (entry != null) { + entry.remove_weak_pointer ((void**) (&entry)); + } + } } private class Entry<K,V> : Map.Entry<K,V> { |