fix incorrect lifetime of cfg table trees

This commit is contained in:
Ryan Fleury
2024-08-28 12:01:19 -07:00
parent 22c4336375
commit 31810bb221
2 changed files with 11 additions and 11 deletions
+9 -9
View File
@@ -46,9 +46,9 @@ load_paths =
commands =
{
//- rjf: fkey command slots (change locally but do not commit)
.build_f1 = { .win = "build raddbg telemetry", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
.build_f2 = { .win = "build rdi_from_pdb", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
.build_f3 = { .win = "pushd build && raddbg.exe --user:local_dev.raddbg_user --project:local_dev.raddbg_project && popd", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
.f1 = { .win = "build raddbg telemetry", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
.f2 = { .win = "build rdi_from_pdb", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
.f3 = { .win = "pushd build && raddbg.exe --user:local_dev.raddbg_user --project:local_dev.raddbg_project --auto_run && popd", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
//- rjf: local target builds
.build_raddbg = { .win = "build raddbg", .linux = "", .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false, },
@@ -80,17 +80,17 @@ commands =
fkey_command =
{
.F1 = "build_f1",
.F2 = "build_f2",
.F3 = "build_f3",
.F1 = "f1",
.F2 = "f2",
.F3 = "f3",
};
fkey_command_override =
{
.rjf =
{
.F1 = "build_f1",
.F2 = "build_f2",
.F3 = "build_f3",
.F1 = "f1",
.F2 = "f2",
.F3 = "f3",
},
};
+2 -2
View File
@@ -408,7 +408,7 @@ df_cfg_table_push_unparsed_string(Arena *arena, DF_CfgTable *table, String8 stri
DF_CfgTree *tree = push_array(arena, DF_CfgTree, 1);
SLLQueuePush_NZ(&df_g_nil_cfg_tree, val->first, val->last, tree, next);
tree->source = source;
tree->root = tln;
tree->root = md_tree_copy(arena, tln);
}
}
@@ -7625,7 +7625,7 @@ df_core_begin_frame(Arena *arena, DF_CmdList *cmds, F32 dt)
if(df_entity_is_nil(recent_project))
{
recent_project = df_entity_alloc(df_entity_root(), DF_EntityKind_RecentProject);
df_entity_equip_name(recent_project, cfg_path);
df_entity_equip_name(recent_project, path_normalized_from_string(scratch.arena, cfg_path));
df_entity_equip_cfg_src(recent_project, DF_CfgSrc_User);
}
}