Remove the timer callback when the Music object is deleted.

svn-id: r28783
This commit is contained in:
Torbjörn Andersson 2007-09-01 11:13:57 +00:00
parent ee2b33376f
commit c51430f1d1

View File

@ -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);