diff options
author | Joost Peters | 2003-10-24 23:09:01 +0000 |
---|---|---|
committer | Joost Peters | 2003-10-24 23:09:01 +0000 |
commit | 3ad14b06f507d056da5c8e1506d95e607029f75e (patch) | |
tree | 3c96bd8a3e8555b522a85df4d327f3837ebaa410 /queen/sound.cpp | |
parent | 87e1963cffd79cbd5aed472f58a91a9ae973c13d (diff) | |
download | scummvm-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/sound.cpp')
-rw-r--r-- | queen/sound.cpp | 2 |
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); } |