diff options
author | Robert Göffringmann | 2003-05-17 20:04:05 +0000 |
---|---|---|
committer | Robert Göffringmann | 2003-05-17 20:04:05 +0000 |
commit | c79d40e1e336f94cd65496b7428fcacb95392691 (patch) | |
tree | c3d388058c6fbec8afafc9f85cfac3af198eba42 /sky/gmmusic.cpp | |
parent | d85abe173761fa502e3eafa3c5ea1b18c9aa92d1 (diff) | |
download | scummvm-rg350-c79d40e1e336f94cd65496b7428fcacb95392691.tar.gz scummvm-rg350-c79d40e1e336f94cd65496b7428fcacb95392691.tar.bz2 scummvm-rg350-c79d40e1e336f94cd65496b7428fcacb95392691.zip |
small fix and added skyText destructor
svn-id: r7617
Diffstat (limited to 'sky/gmmusic.cpp')
-rw-r--r-- | sky/gmmusic.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sky/gmmusic.cpp b/sky/gmmusic.cpp index 784e4f846a..98e79ca88d 100644 --- a/sky/gmmusic.cpp +++ b/sky/gmmusic.cpp @@ -41,8 +41,9 @@ SkyGmMusic::SkyGmMusic(MidiDriver *pMidiDrv, SkyDisk *pSkyDisk) SkyGmMusic::~SkyGmMusic(void) { - _midiDrv->close(); _midiDrv->setTimerCallback(NULL, NULL); + if (_currentMusic) stopMusic(); + _midiDrv->close(); delete _midiDrv; } |