[audio] Plug yet more leaks

What a sieve QF became.
This commit is contained in:
Bill Currie 2023-03-05 17:15:49 +09:00
parent 3e30b7b9e2
commit 9605de53d7
3 changed files with 8 additions and 0 deletions

View file

@ -326,6 +326,7 @@ sfx_t *SND_LoadSound (snd_t *snd, const char *name);
\param snd sound system state
*/
void SND_SFX_Init (snd_t *snd);
void SND_SFX_Shutdown (snd_t *snd);
///@}

View file

@ -401,6 +401,7 @@ s_shutdown (void)
sound_started = 0;
snd_shutdown = 1;
SND_SFX_Shutdown (&snd);
snd_output_funcs->shutdown (&snd);
}

View file

@ -229,3 +229,9 @@ SND_SFX_Init (snd_t *snd)
Cmd_AddCommand ("soundlist", s_soundlist_f,
"Reports a list of loaded sounds");
}
void
SND_SFX_Shutdown (snd_t *snd)
{
Hash_DelTable (snd_sfx_hash);
}