From 69df2e2d0e8a7254da1000c4b2b6cec2edd0b102 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Tue, 30 Jan 2018 10:42:32 -0600 Subject: PARALLACTION: Fix null pointer dereference on quit --- engines/parallaction/objects.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/parallaction/objects.cpp') 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 { -- cgit v1.2.3