diff options
Diffstat (limited to 'engines/agi/wagparser.cpp')
-rw-r--r-- | engines/agi/wagparser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/wagparser.cpp b/engines/agi/wagparser.cpp index 61feac5d17..644ca7c103 100644 --- a/engines/agi/wagparser.cpp +++ b/engines/agi/wagparser.cpp @@ -98,7 +98,7 @@ void WagProperty::setDefaults() { } void WagProperty::deleteData() { - delete _propData; + delete[] _propData; _propData = NULL; } @@ -178,7 +178,7 @@ bool WagFileParser::parse(const Common::FSNode &node) { _parsedOk = false; // We haven't parsed the file yet stream = node.createReadStream(); // Open the file - if (stream) { // Check that opening the file was succesful + if (stream) { // Check that opening the file was successful if (checkWagVersion(*stream)) { // Check that WinAGI version string is valid // It seems we've got a valid *.wag file so let's parse its properties from the start. stream->seek(0); // Rewind the stream |