aboutsummaryrefslogtreecommitdiff
path: root/core/mem.odin
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-01-28 20:16:18 +0000
committerGinger Bill <bill@gingerbill.org>2017-01-28 20:16:18 +0000
commite86c990b75bb30f0116430453b42a59317e3fead (patch)
tree2645005099bd2cf744299d6a3538408ed5728d39 /core/mem.odin
parent31aacd5bf435224c7d8f9b19359175d3e6d25660 (diff)
Overloaded `free`; 3 dotted ellipsisv0.0.6a
Diffstat (limited to 'core/mem.odin')
-rw-r--r--core/mem.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/mem.odin b/core/mem.odin
index 5f1bf378b..c27b709db 100644
--- a/core/mem.odin
+++ b/core/mem.odin
@@ -123,8 +123,8 @@ init_arena_from_context :: proc(using a: ^Arena, size: int) {
free_arena :: proc(using a: ^Arena) {
if backing.procedure != nil {
push_allocator backing {
- free(memory.data);
- memory = memory[0:0];
+ free(memory);
+ memory = nil;
offset = 0;
}
}