From 3c640e0d8244f87fec9518a60c7e5e95713d7f78 Mon Sep 17 00:00:00 2001 From: iamcheeseman <[hidden email]> Date: Thu, 15 Jan 2026 12:41:07 -0500 Subject: Fix memory leaks in the asset compiler --- tools/compile_assets/tiled.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/compile_assets/tiled.odin') diff --git a/tools/compile_assets/tiled.odin b/tools/compile_assets/tiled.odin index 9305acc..29a6a69 100644 --- a/tools/compile_assets/tiled.odin +++ b/tools/compile_assets/tiled.odin @@ -366,7 +366,7 @@ load_json_tileset :: proc(path: string) { } } - gids := make([]u32, len(local_tiles)) + gids := make([]u32, len(local_tiles), context.temp_allocator) for tile, i in local_tiles { gids[i] = first_gid + u32(i) } @@ -407,7 +407,7 @@ load_json_room :: proc(path: string, file: ^os.File) { gid, exists := gids[tileset_name] if !exists { load_json_tileset(strings.concatenate({ - filepath.dir(path), + filepath.dir(path, context.temp_allocator), "/", tileset.source, })) -- cgit v1.3-2-g0d8e