aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2006-01-27 06:35:54 +0000
committerTravis Howell2006-01-27 06:35:54 +0000
commitf0e6965c77b50816bf9d37695983f8ee532f925d (patch)
tree601dcfe0d8d227bcf11b1afb5aa1ec9042fb6747
parent548961ecc35374da59d5d5f5397c6c5159026e12 (diff)
downloadscummvm-rg350-f0e6965c77b50816bf9d37695983f8ee532f925d.tar.gz
scummvm-rg350-f0e6965c77b50816bf9d37695983f8ee532f925d.tar.bz2
scummvm-rg350-f0e6965c77b50816bf9d37695983f8ee532f925d.zip
Fix another memory leak in HE games.
svn-id: r20209
-rw-r--r--scumm/sound_he.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scumm/sound_he.cpp b/scumm/sound_he.cpp
index 9d29d42b5e..1dc1f66ebf 100644
--- a/scumm/sound_he.cpp
+++ b/scumm/sound_he.cpp
@@ -404,6 +404,7 @@ void Sound::playHESound(int soundID, int heOffset, int heChannel, int heFlags) {
sound = (char *)malloc(size * 4);
size = voxStream->readBuffer((int16*)sound, size * 2);
size *= 2; // 16bits.
+ delete(voxStream);
} else {
// Allocate a sound buffer, copy the data into it, and play
sound = (char *)malloc(size);