From 172b95d3476b1f69a073ec4436fa0868f237fa7b Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Fri, 6 May 2005 04:44:54 +0000 Subject: [PATCH] Check if stream exists first. svn-id: r17926 --- scumm/smush/smush_mixer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scumm/smush/smush_mixer.cpp b/scumm/smush/smush_mixer.cpp index 09a05af29cc..c97d8c23ee7 100644 --- a/scumm/smush/smush_mixer.cpp +++ b/scumm/smush/smush_mixer.cpp @@ -98,8 +98,10 @@ bool SmushMixer::handleFrame() { delete _channels[i].chan; _channels[i].id = -1; _channels[i].chan = NULL; - _channels[i].stream->finish(); - _channels[i].stream = 0; + if (_channels[i].stream) { + _channels[i].stream->finish(); + _channels[i].stream = 0; + } } else { int32 rate, vol, pan; bool stereo, is_16bit;