aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo
diff options
context:
space:
mode:
authorDavid Turner2010-12-26 13:58:39 +0000
committerDavid Turner2010-12-26 13:58:39 +0000
commit98783a15e870802e95b83d92bc85bbf66d5a7aa3 (patch)
tree4cb31ea0ac0048859b69ad80e3f4985ec6e27b9d /engines/hugo
parent8347b44fb2ea8166c6bb41bfa12b79ce9a164d38 (diff)
downloadscummvm-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/hugo')
-rw-r--r--engines/hugo/sound.cpp1
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);