From 90d08111856e9f86e9b4b8856ddd9bfd5558102b Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Mon, 23 Apr 2012 13:55:25 +0000 Subject: [PATCH] Delete all OpenAL sources at shutdown --- src/client/sound/snd_al.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/sound/snd_al.c b/src/client/sound/snd_al.c index a8a4ca63..6954a138 100644 --- a/src/client/sound/snd_al.c +++ b/src/client/sound/snd_al.c @@ -121,6 +121,8 @@ fail: void AL_Shutdown( void ) { Com_Printf( "Shutting down OpenAL.\n" ); + qalDeleteSources(1, &streamSource); + if( s_numchannels ) { // delete source names qalDeleteSources( s_numchannels, s_srcnums );