diff options
Diffstat (limited to 'engines/sherlock')
-rw-r--r-- | engines/sherlock/music.cpp | 1 | ||||
-rw-r--r-- | engines/sherlock/sound.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/engines/sherlock/music.cpp b/engines/sherlock/music.cpp index c793b4a2ae..a97e55d66b 100644 --- a/engines/sherlock/music.cpp +++ b/engines/sherlock/music.cpp @@ -313,6 +313,7 @@ bool Music::playMusic(const Common::String &name) { assert(data); stream->read(data, dataSize); + delete stream; // for dumping the music tracks #if 0 diff --git a/engines/sherlock/sound.cpp b/engines/sherlock/sound.cpp index e7f4fe8a9a..390576e98e 100644 --- a/engines/sherlock/sound.cpp +++ b/engines/sherlock/sound.cpp @@ -135,6 +135,7 @@ bool Sound::playSound(const Common::String &name, WaitType waitType, int priorit byte *data = (byte *)malloc(size); byte *ptr = data; stream->read(ptr, size); + delete stream; assert(size > 2); |