aboutsummaryrefslogtreecommitdiff
path: root/src/query_data.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-08-26 15:38:34 +0100
committergingerBill <bill@gingerbill.org>2021-08-26 15:38:34 +0100
commitaa8777ee47f503eb90d4e2225274d0d20a9b39a3 (patch)
tree1848951efd4e7452e5fc04376e21920718f44a76 /src/query_data.cpp
parent98dd59e412314f089fc9558c5cf92a8a5df5213a (diff)
Change the implementation of `Arena` to use virtual memory, and remove the old gbArena code
Diffstat (limited to 'src/query_data.cpp')
-rw-r--r--src/query_data.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/query_data.cpp b/src/query_data.cpp
index ce42c00e2..71c21f2ba 100644
--- a/src/query_data.cpp
+++ b/src/query_data.cpp
@@ -252,10 +252,7 @@ void print_query_data_as_json(QueryValue *value, bool format = true, isize inden
char const hex_table[] = "0123456789ABCDEF";
isize buf_len = name.len + extra + 2 + 1;
- gbTempArenaMemory tmp = gb_temp_arena_memory_begin(&string_buffer_arena);
- defer (gb_temp_arena_memory_end(tmp));
-
- u8 *buf = gb_alloc_array(string_buffer_allocator, u8, buf_len);
+ u8 *buf = gb_alloc_array(temporary_allocator(), u8, buf_len);
isize j = 0;