aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorColin Snover2018-01-30 10:42:32 -0600
committerD G Turner2018-08-01 16:44:51 +0100
commit69df2e2d0e8a7254da1000c4b2b6cec2edd0b102 (patch)
tree8167a0b2c58591db3063cdabd238530a693853de /engines/parallaction
parent8f7f7a9c2bde9be595d53aee1c41f1f6918ddd6e (diff)
downloadscummvm-rg350-69df2e2d0e8a7254da1000c4b2b6cec2edd0b102.tar.gz
scummvm-rg350-69df2e2d0e8a7254da1000c4b2b6cec2edd0b102.tar.bz2
scummvm-rg350-69df2e2d0e8a7254da1000c4b2b6cec2edd0b102.zip
PARALLACTION: Fix null pointer dereference on quit
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/objects.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/parallaction/objects.cpp b/engines/parallaction/objects.cpp
index 950d62a841..a6ca3fcd2b 100644
--- a/engines/parallaction/objects.cpp
+++ b/engines/parallaction/objects.cpp
@@ -64,7 +64,9 @@ Animation::Animation() {
Animation::~Animation() {
free(_scriptName);
- gfxobj->release();
+ if (gfxobj) {
+ gfxobj->release();
+ }
}
void Animation::getFrameRect(Common::Rect &r) const {