diff options
author | David Turner | 2010-12-26 13:58:39 +0000 |
---|---|---|
committer | David Turner | 2010-12-26 13:58:39 +0000 |
commit | 98783a15e870802e95b83d92bc85bbf66d5a7aa3 (patch) | |
tree | 4cb31ea0ac0048859b69ad80e3f4985ec6e27b9d /engines | |
parent | 8347b44fb2ea8166c6bb41bfa12b79ce9a164d38 (diff) | |
download | scummvm-rg350-98783a15e870802e95b83d92bc85bbf66d5a7aa3.tar.gz scummvm-rg350-98783a15e870802e95b83d92bc85bbf66d5a7aa3.tar.bz2 scummvm-rg350-98783a15e870802e95b83d92bc85bbf66d5a7aa3.zip |
HUGO: Fix MIDI Player Memory Leak in H3 Win.
svn-id: r55040
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hugo/sound.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/hugo/sound.cpp b/engines/hugo/sound.cpp index cdb3ced347..5f3ac52db6 100644 --- a/engines/hugo/sound.cpp +++ b/engines/hugo/sound.cpp @@ -65,6 +65,7 @@ void MidiPlayer::play(uint8 *stream, uint16 size) { return; } + stop(); _midiData = (uint8 *)malloc(size); if (_midiData) { memcpy(_midiData, stream, size); |