From df4edb43d4cad1ac62ce5fcd28754412e1bbc8da Mon Sep 17 00:00:00 2001 From: William Emfinger Date: Sun, 22 Nov 2026 15:05:48 -0700 Subject: [PATCH] Jedi Knight: checking that a cutscene exists no longer leaks the video file esp-cpp/OpenJKDF2 esp32/cutscene-check-leak (58a8df48). Before each cutscene the engine checked the video file through a path that read the whole file into memory and never freed it: 7.1 MB for 23A.SMK after level 8, 3.3 MB for 25A after level 9. The rest of the boot lost it too, since the copy was plain malloc. That is why 09FuelStation failed to load in a continuous run (largest block 2 MB) and why quitting JK at a tally, a cutscene or a level load lost 7-10 MB of PSRAM until reboot. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY --- components/jk/OpenJKDF2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/jk/OpenJKDF2 b/components/jk/OpenJKDF2 index 6a71507..58a8df4 160000 --- a/components/jk/OpenJKDF2 +++ b/components/jk/OpenJKDF2 @@ -1 +1 @@ -Subproject commit 6a715074f21b18e8c954e172f06b5934bd3b0b06 +Subproject commit 58a8df489005ad5baf7c9cc2cebb9b1081bb45e4