[Scummvm-cvs-logs] CVS: scummvm/queen sound.cpp,1.2,1.3
Joost Peters
joostp at users.sourceforge.net
Fri Oct 24 16:10:10 CEST 2003
Update of /cvsroot/scummvm/scummvm/queen
In directory sc8-pr-cvs1:/tmp/cvs-serv26508/queen
Modified Files:
sound.cpp
Log Message:
added extra flag to mixer so we don't use free() on new'd pointers
Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/sound.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- sound.cpp 23 Oct 2003 06:44:35 -0000 1.2
+++ sound.cpp 24 Oct 2003 23:09:00 -0000 1.3
@@ -62,7 +62,7 @@
}
int SBSound::playSound(byte *sound, uint32 size) {
- byte flags = 0 | SoundMixer::FLAG_UNSIGNED | SoundMixer::FLAG_AUTOFREE;
+ byte flags = 0 | SoundMixer::FLAG_UNSIGNED | SoundMixer::FLAG_AUTODELETE;
return _mixer->playRaw(&_sfxHandle, sound, size, 11025, flags);
}
More information about the Scummvm-git-logs
mailing list