aboutsummaryrefslogtreecommitdiff
path: root/scumm/smush/smush_mixer.cpp
diff options
context:
space:
mode:
authorMax Horn2005-05-05 18:30:42 +0000
committerMax Horn2005-05-05 18:30:42 +0000
commit0411be88db6a542a8b2360e1310058c7ab62f64b (patch)
tree5ed843e04bb2e37ad85041d0b77fb97ea3272502 /scumm/smush/smush_mixer.cpp
parentd00117ec4bdc0b8c79854ba8e9fbd50ecb4acda9 (diff)
downloadscummvm-rg350-0411be88db6a542a8b2360e1310058c7ab62f64b.tar.gz
scummvm-rg350-0411be88db6a542a8b2360e1310058c7ab62f64b.tar.bz2
scummvm-rg350-0411be88db6a542a8b2360e1310058c7ab62f64b.zip
do not invoke a method on a non-existant stream
svn-id: r17924
Diffstat (limited to 'scumm/smush/smush_mixer.cpp')
-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;