diff options
author | Max Horn | 2003-06-09 01:19:44 +0000 |
---|---|---|
committer | Max Horn | 2003-06-09 01:19:44 +0000 |
commit | f7e85af55273ad9d2d342d5cc36e92beaa23186d (patch) | |
tree | e3db44003331e67761687b1f0c3849f0413410a2 /sound | |
parent | 82af035f91077551b4bbf3a284d49b50e36bc88d (diff) | |
download | scummvm-rg350-f7e85af55273ad9d2d342d5cc36e92beaa23186d.tar.gz scummvm-rg350-f7e85af55273ad9d2d342d5cc36e92beaa23186d.tar.bz2 scummvm-rg350-f7e85af55273ad9d2d342d5cc36e92beaa23186d.zip |
use clear_sound_proc to properly deinit the mixer (this fixes a crash-on-exit)
svn-id: r8410
Diffstat (limited to 'sound')
-rw-r--r-- | sound/mixer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp index 5433032021..4d444b8626 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -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) { |