From ef527ec64075d615a5fe5a8ae92ce038aff8fa45 Mon Sep 17 00:00:00 2001 From: Quinn Date: Wed, 16 Apr 2025 14:05:59 +0200 Subject: [PATCH] fix: memory leak due to not unloading the audio --- src/game/game.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/game.c b/src/game/game.c index c500aae..a410fd2 100644 --- a/src/game/game.c +++ b/src/game/game.c @@ -139,6 +139,7 @@ void game_update(gamedata* const dat) { void game_free(gamedata* const dat) { audio_wav_unload(&dat->music); + audio_wav_unload(&dat->place_sfx); audio_device_free(dat->audio_device); // clear each row