[Scummvm-cvs-logs] CVS: scummvm/sound mididrv.cpp,1.31,1.32

Nicolas Noble pixels at users.sourceforge.net
Sat May 18 04:49:03 CEST 2002


Update of /cvsroot/scummvm/scummvm/sound
In directory usw-pr-cvs1:/tmp/cvs-serv28714/sound

Modified Files:
	mididrv.cpp 
Log Message:
Fixing ALSA driver to not segfault when launching simon. It still isn't
supported but it's better signaled now. BTW I think there is a bug
somewhere since the close() method were called without beeing open()'d. Oh well...


Index: mididrv.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mididrv.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- mididrv.cpp	17 May 2002 17:41:07 -0000	1.31
+++ mididrv.cpp	18 May 2002 11:48:48 -0000	1.32
@@ -1581,8 +1581,9 @@
 }
 
 void MidiDriver_ALSA::close() {
-    _mode = 0;
-    snd_seq_close(seq_handle);
+	_mode = 0;
+        if (seq_handle)
+		snd_seq_close(seq_handle);
 }
 
 





More information about the Scummvm-git-logs mailing list