[Scummvm-cvs-logs] CVS: scummvm/sound mixer.cpp,1.39,1.40

Max Horn fingolfin at users.sourceforge.net
Sun Jun 8 18:20:04 CEST 2003


Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1:/tmp/cvs-serv10521/sound

Modified Files:
	mixer.cpp 
Log Message:
use clear_sound_proc to properly deinit the mixer (this fixes a crash-on-exit)

Index: mixer.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mixer.cpp,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- mixer.cpp	29 May 2003 22:34:35 -0000	1.39
+++ mixer.cpp	9 Jun 2003 01:19:44 -0000	1.40
@@ -36,7 +36,11 @@
 }
 
 SoundMixer::~SoundMixer() {
+	_syst->clear_sound_proc();
 	free(_volumeTable);
+	for (int i = 0; i != NUM_CHANNELS; i++) {
+		delete _channels[i];
+	}
 }
 
 void SoundMixer::unInsert(Channel *chan) {





More information about the Scummvm-git-logs mailing list