diff options
Diffstat (limited to 'engines/parallaction/objects.cpp')
-rw-r--r-- | engines/parallaction/objects.cpp | 4 |
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 { |