aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicola Mettifogo2009-03-23 20:42:53 +0000
committerNicola Mettifogo2009-03-23 20:42:53 +0000
commit52b1c9e32f687d2c090c7afc38ad933cedede295 (patch)
treedd95e935f119c16defdaaaf5010276d0b9ed85e9
parent2223627c7541651efd49f0718bbfe71a1625cee3 (diff)
downloadscummvm-rg350-52b1c9e32f687d2c090c7afc38ad933cedede295.tar.gz
scummvm-rg350-52b1c9e32f687d2c090c7afc38ad933cedede295.tar.bz2
scummvm-rg350-52b1c9e32f687d2c090c7afc38ad933cedede295.zip
Oops.
svn-id: r39646
-rw-r--r--engines/parallaction/objects.h4
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;
}
};