mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 05:55:46 +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