diff options
author | Johannes Schickel | 2008-04-10 19:15:14 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-04-10 19:15:14 +0000 |
commit | 924912b7fb324a84d8f3cf6b96f5228d86af4fb2 (patch) | |
tree | 4b6769c34fefb831f146247cda53d9960dbd32b8 /engines | |
parent | 950e9e6d445c96b1e0e8364f7f06bbfb75e0ea5e (diff) | |
download | scummvm-rg350-924912b7fb324a84d8f3cf6b96f5228d86af4fb2.tar.gz scummvm-rg350-924912b7fb324a84d8f3cf6b96f5228d86af4fb2.tar.bz2 scummvm-rg350-924912b7fb324a84d8f3cf6b96f5228d86af4fb2.zip |
Fixed track unloading for MIDI.
svn-id: r31472
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/sound.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/sound.cpp b/engines/kyra/sound.cpp index 455877002b..476b3b8b03 100644 --- a/engines/kyra/sound.cpp +++ b/engines/kyra/sound.cpp @@ -350,8 +350,9 @@ void SoundMidiPC::loadSoundFile(uint file) { _currentTrack = filename; - _midiFile = Common::SharedPtr<byte>(data, DeleterArray()); _musicParser->unloadMusic(); + _sfxParser->unloadMusic(); + _midiFile = Common::SharedPtr<byte>(data, DeleterArray()); _isMusicPlaying = _isSfxPlaying = false; _fadeStartTime = 0; |