aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Turner2010-11-30 01:49:00 +0000
committerDavid Turner2010-11-30 01:49:00 +0000
commit7aca10bf9a4e28eb9c3d7966cd8d71cd29e921d4 (patch)
treeccf2b0f69c150e7e483dbc7de19cac7280e89a61
parentb8373668711390ceff0b783c4bd3c17e81873174 (diff)
downloadscummvm-rg350-7aca10bf9a4e28eb9c3d7966cd8d71cd29e921d4.tar.gz
scummvm-rg350-7aca10bf9a4e28eb9c3d7966cd8d71cd29e921d4.tar.bz2
scummvm-rg350-7aca10bf9a4e28eb9c3d7966cd8d71cd29e921d4.zip
HUGO: Close Memory Leak in PlayMusic() Function.
svn-id: r54664
-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 a680e00b82..52ba60d2ac 100644
--- a/engines/hugo/sound.cpp
+++ b/engines/hugo/sound.cpp
@@ -293,6 +293,7 @@ void SoundHandler::playMusic(int16 tune) {
_vm->getGameStatus().song = tune;
seqPtr = _vm->_file->getSound(tune, &size);
playMIDI(seqPtr, size);
+ free(seqPtr);
}
}