diff options
author | Torbjörn Andersson | 2010-07-16 03:34:25 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2010-07-16 03:34:25 +0000 |
commit | bde1cbd785d14ed8a45a6863aa75ff380a30541e (patch) | |
tree | 751edb99f7c581db525f340fee1ba40abb1148f2 /engines/agi | |
parent | ae1afee564070234afc0a1b4fca619b3231d4e57 (diff) | |
download | scummvm-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.cpp | 6 | ||||
-rw-r--r-- | engines/agi/words.cpp | 6 |
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; } /** |