use clear_sound_proc to properly deinit the mixer (this fixes a crash-on-exit)

svn-id: r8410
This commit is contained in:
Max Horn 2003-06-09 01:19:44 +00:00
parent 82af035f91
commit f7e85af552

View File

@ -36,7 +36,11 @@ SoundMixer::SoundMixer() {
}
SoundMixer::~SoundMixer() {
_syst->clear_sound_proc();
free(_volumeTable);
for (int i = 0; i != NUM_CHANNELS; i++) {
delete _channels[i];
}
}
void SoundMixer::unInsert(Channel *chan) {