Index: src/interface.cc |
diff --git a/src/interface.cc b/src/interface.cc |
index 603dfe9b8639307e63cd21e4da94effba80fe2a7..c39d50e3582c4ed1c1496ab45748e05d0a36bc0a 100644 |
--- a/src/interface.cc |
+++ b/src/interface.cc |
@@ -89,9 +89,10 @@ void Interface::DoAdd( |
ZoneHashMap** map = &Chase()->exports_; |
ZoneAllocationPolicy allocator(zone); |
- if (*map == NULL) |
- *map = new ZoneHashMap(Match, ZoneHashMap::kDefaultHashMapCapacity, |
- allocator); |
+ if (*map == NULL) { |
+ *map = new(zone->New(sizeof(ZoneHashMap))) |
+ ZoneHashMap(Match, ZoneHashMap::kDefaultHashMapCapacity, allocator); |
+ } |
ZoneHashMap::Entry* p = (*map)->Lookup(name, hash, !IsFrozen(), allocator); |
if (p == NULL) { |