mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-16 17:01:53 +00:00
[audio] Plug yet more leaks
What a sieve QF became.
This commit is contained in:
parent
3e30b7b9e2
commit
9605de53d7
3 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
||||
///@}
|
||||
|
||||
|
|
|
@ -401,6 +401,7 @@ s_shutdown (void)
|
|||
sound_started = 0;
|
||||
snd_shutdown = 1;
|
||||
|
||||
SND_SFX_Shutdown (&snd);
|
||||
snd_output_funcs->shutdown (&snd);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue