aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/smush/smush_mixer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/smush/smush_mixer.cpp b/scumm/smush/smush_mixer.cpp
index 06ac72e751..09a05af29c 100644
--- a/scumm/smush/smush_mixer.cpp
+++ b/scumm/smush/smush_mixer.cpp
@@ -148,8 +148,10 @@ bool SmushMixer::stop() {
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;
+ }
}
}
return true;