mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-19 16:18:45 +00:00
Remove the timer callback when the Music object is deleted.
svn-id: r28783
This commit is contained in:
parent
ee2b33376f
commit
c51430f1d1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user