mirror of
https://github.com/thepigeongenerator/tetris_clone
synced 2026-02-08 07:33:34 +01:00
fix: memory leak due to not unloading the audio
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user