aboutsummaryrefslogtreecommitdiff
path: root/src/common_memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common_memory.cpp')
-rw-r--r--src/common_memory.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/common_memory.cpp b/src/common_memory.cpp
index 4c77521e1..940e79f4b 100644
--- a/src/common_memory.cpp
+++ b/src/common_memory.cpp
@@ -306,10 +306,11 @@ gb_internal gbAllocator temporary_allocator() {
gb_internal GB_ALLOCATOR_PROC(heap_allocator_proc);
gb_internal gbAllocator heap_allocator(void) {
- gbAllocator a;
- a.proc = heap_allocator_proc;
- a.data = nullptr;
- return a;
+ return arena_allocator(&permanent_arena);
+ // gbAllocator a;
+ // a.proc = heap_allocator_proc;
+ // a.data = nullptr;
+ // return a;
}