diff options
author | Nicola Mettifogo | 2008-11-04 13:57:29 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-11-04 13:57:29 +0000 |
commit | 70679e68951789f70f57a8b900b51b3cf52979b1 (patch) | |
tree | 2504c693e53460a0eddf5f269b51295f5f2afc2e | |
parent | 9fe31503486326869f6728bb0d0da4629a81aba8 (diff) | |
download | scummvm-rg350-70679e68951789f70f57a8b900b51b3cf52979b1.tar.gz scummvm-rg350-70679e68951789f70f57a8b900b51b3cf52979b1.tar.bz2 scummvm-rg350-70679e68951789f70f57a8b900b51b3cf52979b1.zip |
Fixed leak (unreleased stream of music data).
svn-id: r34895
-rw-r--r-- | engines/parallaction/sound.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/parallaction/sound.cpp b/engines/parallaction/sound.cpp index 698373d541..8c6174a0db 100644 --- a/engines/parallaction/sound.cpp +++ b/engines/parallaction/sound.cpp @@ -104,6 +104,7 @@ void MidiPlayer::play(Common::SeekableReadStream *stream) { _midiData = (uint8 *)malloc(size); if (_midiData) { stream->read(_midiData, size); + delete stream; _mutex.lock(); _parser->loadMusic(_midiData, size); _parser->setTrack(0); |