From fabcb25a68fca9ec4444adafc008eccf226069a8 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 27 Dec 2003 21:31:41 +0000 Subject: paranoia svn-id: r11980 --- sound/mixer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sound') diff --git a/sound/mixer.cpp b/sound/mixer.cpp index 28b7183665..6882eb50bf 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -127,9 +127,7 @@ SoundMixer::SoundMixer() { SoundMixer::~SoundMixer() { _syst->clear_sound_proc(); - for (int i = 0; i != NUM_CHANNELS; i++) { - delete _channels[i]; - } + stopAll(); _syst->delete_mutex(_mutex); } @@ -164,7 +162,7 @@ void SoundMixer::appendStream(PlayingSoundHandle handle, void *sound, uint32 siz chan = (ChannelStream*)_channels[index]; #endif if (!chan) { - error("Trying to append to nonexistant streamer : %d", index); + error("Trying to append to nonexistant stream : %d", index); } else { chan->append(sound, size); } -- cgit v1.2.3