From 044e78bea21095203029e29db6766a84a9e41b4b Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Mon, 15 Jul 2024 09:07:02 -0700 Subject: [PATCH] fix incorrect scratch usage in new code view ui build path --- src/df/gfx/df_views.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/df/gfx/df_views.c b/src/df/gfx/df_views.c index de09eaa7..68bd7c53 100644 --- a/src/df/gfx/df_views.c +++ b/src/df/gfx/df_views.c @@ -462,7 +462,7 @@ internal DF_CodeViewBuildResult df_code_view_build(Arena *arena, DF_Window *ws, DF_Panel *panel, DF_View *view, DF_CodeViewState *cv, DF_CodeViewBuildFlags flags, Rng2F32 rect, String8 text_data, TXT_TextInfo *text_info, DASM_InstArray *dasm_insts, Rng1U64 dasm_vaddr_range, DI_Key dasm_dbgi_key) { ProfBeginFunction(); - Temp scratch = scratch_begin(0, 0); + Temp scratch = scratch_begin(&arena, 1); HS_Scope *hs_scope = hs_scope_open(); DI_Scope *di_scope = di_scope_open(); TXT_Scope *txt_scope = txt_scope_open();