diff options
author | Travis Howell | 2006-01-27 06:35:54 +0000 |
---|---|---|
committer | Travis Howell | 2006-01-27 06:35:54 +0000 |
commit | f0e6965c77b50816bf9d37695983f8ee532f925d (patch) | |
tree | 601dcfe0d8d227bcf11b1afb5aa1ec9042fb6747 | |
parent | 548961ecc35374da59d5d5f5397c6c5159026e12 (diff) | |
download | scummvm-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.cpp | 1 |
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); |