diff options
author | Nicola Mettifogo | 2010-04-28 22:13:02 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2010-04-28 22:13:02 +0000 |
commit | 122fde0775c98b8e021b31ca21840848abd197ae (patch) | |
tree | bfc24adc76f7c05de6624771f8adb8925e0b2750 /engines/parallaction | |
parent | ee63bf51bd4c2e4a56fefff721e6298bd7f03378 (diff) | |
download | scummvm-rg350-122fde0775c98b8e021b31ca21840848abd197ae.tar.gz scummvm-rg350-122fde0775c98b8e021b31ca21840848abd197ae.tar.bz2 scummvm-rg350-122fde0775c98b8e021b31ca21840848abd197ae.zip |
Fixed leaks in parsing of examine and door zones.
svn-id: r48838
Diffstat (limited to 'engines/parallaction')
-rw-r--r-- | engines/parallaction/parser_ns.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/parser_ns.cpp b/engines/parallaction/parser_ns.cpp index 1c06f86bfa..be72cf73a1 100644 --- a/engines/parallaction/parser_ns.cpp +++ b/engines/parallaction/parser_ns.cpp @@ -1346,7 +1346,7 @@ void LocationParser_ns::parseGetData(ZonePtr z) { void LocationParser_ns::parseExamineData(ZonePtr z) { TypeData *data = &z->u; if (!scumm_stricmp(_tokens[0], "file")) { - data->_filename = strdup(_tokens[1]); + data->_filename = _tokens[1]; } else if (!scumm_stricmp(_tokens[0], "desc")) { data->_examineText = parseComment(); @@ -1360,7 +1360,7 @@ void LocationParser_ns::parseDoorData(ZonePtr z) { _vm->_location._slideText[1] = _tokens[2]; } else if (!scumm_stricmp(_tokens[0], "location")) { - data->_doorLocation = strdup(_tokens[1]); + data->_doorLocation = _tokens[1]; } else if (!scumm_stricmp(_tokens[0], "file")) { GfxObj *obj = _vm->_gfx->loadDoor(_tokens[1]); |