summaryrefslogtreecommitdiff
path: root/std/map.zc
diff options
context:
space:
mode:
Diffstat (limited to 'std/map.zc')
-rw-r--r--std/map.zc7
1 files changed, 7 insertions, 0 deletions
diff --git a/std/map.zc b/std/map.zc
index 8e58cdc..70d6ad2 100644
--- a/std/map.zc
+++ b/std/map.zc
@@ -1,6 +1,7 @@
import "./core.zc"
import "./option.zc"
+import "./mem.zc"
raw {
extern size_t __zen_hash_seed;
@@ -248,3 +249,9 @@ impl Map<V> {
};
}
}
+
+impl Drop for Map<V> {
+ fn drop(self) {
+ self.free();
+ }
+}