aboutsummaryrefslogtreecommitdiff
path: root/queen
diff options
context:
space:
mode:
authorJoost Peters2003-10-24 23:09:01 +0000
committerJoost Peters2003-10-24 23:09:01 +0000
commit3ad14b06f507d056da5c8e1506d95e607029f75e (patch)
tree3c96bd8a3e8555b522a85df4d327f3837ebaa410 /queen
parent87e1963cffd79cbd5aed472f58a91a9ae973c13d (diff)
downloadscummvm-rg350-3ad14b06f507d056da5c8e1506d95e607029f75e.tar.gz
scummvm-rg350-3ad14b06f507d056da5c8e1506d95e607029f75e.tar.bz2
scummvm-rg350-3ad14b06f507d056da5c8e1506d95e607029f75e.zip
added extra flag to mixer so we don't use free() on new'd pointers
svn-id: r10958
Diffstat (limited to 'queen')
-rw-r--r--queen/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/queen/sound.cpp b/queen/sound.cpp
index 15a831b89e..50768ed804 100644
--- a/queen/sound.cpp
+++ b/queen/sound.cpp
@@ -62,7 +62,7 @@ bool Sound::isPlaying() {
}
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);
}