Add default allocator to allocation related procedures e.g. alloc, free, delete, make

This commit is contained in:
gingerBill
2018-08-28 20:14:56 +01:00
parent ae2af8315e
commit 28523f17e2
3 changed files with 52 additions and 69 deletions
+2 -2
View File
@@ -748,8 +748,8 @@ __dynamic_map_rehash :: proc(using header: Map_Header, new_count: int, loc := #c
if __dynamic_map_full(new_header) do __dynamic_map_grow(new_header, loc);
}
mem.free_ptr_with_allocator(header_hashes.allocator, header_hashes.data, loc);
mem.free_ptr_with_allocator(header.m.entries.allocator, header.m.entries.data, loc);
free(header_hashes.data, header_hashes.allocator, loc);
free(header.m.entries.data, header.m.entries.allocator, loc);
header.m^ = nm;
}