aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-08-20 06:36:50 +0000
committerPaweł Kołodziejski2002-08-20 06:36:50 +0000
commitf3ceaf7f81246a3ddc5e09b2710d2627a3a412ba (patch)
tree0dceadec85d68fc63fce616671f77554474bc09f /sound
parentd2e2134a3ea3fd56bbf208e94bc26a434df9e2a7 (diff)
downloadscummvm-rg350-f3ceaf7f81246a3ddc5e09b2710d2627a3a412ba.tar.gz
scummvm-rg350-f3ceaf7f81246a3ddc5e09b2710d2627a3a412ba.tar.bz2
scummvm-rg350-f3ceaf7f81246a3ddc5e09b2710d2627a3a412ba.zip
applied patch 597414, thanks Xavier
svn-id: r4778
Diffstat (limited to 'sound')
-rw-r--r--sound/mixer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index f1cab83ff7..201b848f8f 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -60,6 +60,8 @@ int SoundMixer::append(int index, void *sound, uint32 size, uint rate, byte flag
chan = _channels[index];
} else {
chan->append(sound, size);
+ if (flags & FLAG_AUTOFREE)
+ free(sound);
}
_syst->unlock_mutex(_mutex);