From 52b1c9e32f687d2c090c7afc38ad933cedede295 Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Mon, 23 Mar 2009 20:42:53 +0000 Subject: [PATCH] Oops. svn-id: r39646 --- engines/parallaction/objects.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engines/parallaction/objects.h b/engines/parallaction/objects.h index b97c1683275..628e4b8d9b0 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; } };