From 815552a2da6fadef0152c8e17cd980bc48087ff1 Mon Sep 17 00:00:00 2001 From: Archez Date: Sat, 18 May 2024 15:58:27 -0400 Subject: [PATCH] Fix gamestate not being freed causing an overflow in the zelda arena (#421) --- mm/src/code/graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/src/code/graph.c b/mm/src/code/graph.c index 8014b50df..a0694784a 100644 --- a/mm/src/code/graph.c +++ b/mm/src/code/graph.c @@ -426,7 +426,7 @@ void RunFrame() { runFrameContext.nextOvl = Graph_GetNextGameState(runFrameContext.gameState); GameState_Destroy(runFrameContext.gameState); - // System (runFrameContext.gameState); + SystemArena_Free(runFrameContext.gameState); Overlay_FreeGameState(runFrameContext.ovl); } Graph_Destroy(&runFrameContext.gfxCtx);