fix: memory leak due to not unloading the audio

This commit is contained in:
2025-04-16 14:05:59 +02:00
parent 1b384af8e9
commit ef527ec640

View File

@@ -139,6 +139,7 @@ void game_update(gamedata* const dat) {
void game_free(gamedata* const dat) { void game_free(gamedata* const dat) {
audio_wav_unload(&dat->music); audio_wav_unload(&dat->music);
audio_wav_unload(&dat->place_sfx);
audio_device_free(dat->audio_device); audio_device_free(dat->audio_device);
// clear each row // clear each row