mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 13:42:02 +00:00
SHERLOCK: Free memory leaks from unreleased sound resources
This commit is contained in:
parent
9da6a90713
commit
ec56344ed7
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user