diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-01-28 20:16:18 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-01-28 20:16:18 +0000 |
| commit | e86c990b75bb30f0116430453b42a59317e3fead (patch) | |
| tree | 2645005099bd2cf744299d6a3538408ed5728d39 /core/mem.odin | |
| parent | 31aacd5bf435224c7d8f9b19359175d3e6d25660 (diff) | |
Overloaded `free`; 3 dotted ellipsisv0.0.6a
Diffstat (limited to 'core/mem.odin')
| -rw-r--r-- | core/mem.odin | 4 |
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; } } |