diff options
-rw-r--r-- | engines/parallaction/objects.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/parallaction/objects.h b/engines/parallaction/objects.h index b97c168327..628e4b8d9b 100644 --- a/engines/parallaction/objects.h +++ b/engines/parallaction/objects.h @@ -248,7 +248,9 @@ struct TypeData { } ~TypeData() { - _gfxobj->release(); + if (_gfxobj) { + _gfxobj->release(); + } delete _speakDialogue; } }; |