diff options
author | Torbjörn Andersson | 2007-09-01 11:13:57 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-09-01 11:13:57 +0000 |
commit | c51430f1d126cf689ec6454d022b3aa2d889ad84 (patch) | |
tree | ad9c74fddeba6fe570154185bfedd72ffe492b27 /engines | |
parent | ee2b33376fe6493a7e77bd63cd4d3542b9315852 (diff) | |
download | scummvm-rg350-c51430f1d126cf689ec6454d022b3aa2d889ad84.tar.gz scummvm-rg350-c51430f1d126cf689ec6454d022b3aa2d889ad84.tar.bz2 scummvm-rg350-c51430f1d126cf689ec6454d022b3aa2d889ad84.zip |
Remove the timer callback when the Music object is deleted.
svn-id: r28783
Diffstat (limited to 'engines')
-rw-r--r-- | engines/saga/music.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/saga/music.cpp b/engines/saga/music.cpp index 76249c5da7..dd610fe65b 100644 --- a/engines/saga/music.cpp +++ b/engines/saga/music.cpp @@ -356,6 +356,7 @@ Music::Music(SagaEngine *vm, Audio::Mixer *mixer, MidiDriver *driver, int enable } Music::~Music() { + _vm->_timer->removeTimerProc(&musicVolumeGaugeCallback); _mixer->stopHandle(_musicHandle); delete _player; xmidiParser->setMidiDriver(NULL); |