diff options
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; } } |