diff options
Diffstat (limited to 'scumm/sound_he.cpp')
-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); |