aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMax Horn2003-12-27 21:31:41 +0000
committerMax Horn2003-12-27 21:31:41 +0000
commitfabcb25a68fca9ec4444adafc008eccf226069a8 (patch)
tree4cc0ab2add08798e9ba5b89db87eff777bb6a808 /sound
parentaf2d9b9a163fa9d8d3f35e692f73c12872886f52 (diff)
downloadscummvm-rg350-fabcb25a68fca9ec4444adafc008eccf226069a8.tar.gz
scummvm-rg350-fabcb25a68fca9ec4444adafc008eccf226069a8.tar.bz2
scummvm-rg350-fabcb25a68fca9ec4444adafc008eccf226069a8.zip
paranoia
svn-id: r11980
Diffstat (limited to 'sound')
-rw-r--r--sound/mixer.cpp6
1 files changed, 2 insertions, 4 deletions
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);
}