aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorTorbjörn Andersson2010-07-16 03:34:25 +0000
committerTorbjörn Andersson2010-07-16 03:34:25 +0000
commitbde1cbd785d14ed8a45a6863aa75ff380a30541e (patch)
tree751edb99f7c581db525f340fee1ba40abb1148f2 /engines/agi
parentae1afee564070234afc0a1b4fca619b3231d4e57 (diff)
downloadscummvm-rg350-bde1cbd785d14ed8a45a6863aa75ff380a30541e.tar.gz
scummvm-rg350-bde1cbd785d14ed8a45a6863aa75ff380a30541e.tar.bz2
scummvm-rg350-bde1cbd785d14ed8a45a6863aa75ff380a30541e.zip
Cleanup.
svn-id: r50928
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/wagparser.cpp6
-rw-r--r--engines/agi/words.cpp6
2 files changed, 4 insertions, 8 deletions
diff --git a/engines/agi/wagparser.cpp b/engines/agi/wagparser.cpp
index 1d60524070..22de66712d 100644
--- a/engines/agi/wagparser.cpp
+++ b/engines/agi/wagparser.cpp
@@ -100,10 +100,8 @@ void WagProperty::setDefaults() {
}
void WagProperty::deleteData() {
- if (_propData != NULL) {
- delete _propData;
- _propData = NULL;
- }
+ delete _propData;
+ _propData = NULL;
}
WagFileParser::WagFileParser() :
diff --git a/engines/agi/words.cpp b/engines/agi/words.cpp
index c8b22956f4..464c218ae8 100644
--- a/engines/agi/words.cpp
+++ b/engines/agi/words.cpp
@@ -76,10 +76,8 @@ int AgiEngine::loadWords(const char *fname) {
}
void AgiEngine::unloadWords() {
- if (words != NULL) {
- free(words);
- words = NULL;
- }
+ free(words);
+ words = NULL;
}
/**