SHERLOCK: Free memory leaks from unreleased sound resources

This commit is contained in:
Paul Gilbert 2015-05-30 18:44:48 -04:00
parent 9da6a90713
commit ec56344ed7
2 changed files with 2 additions and 0 deletions

View file

@ -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);