diff options
author | yinsimei | 2017-07-01 22:01:47 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | 15e7f5c48e4e2747223d04445902fc13f23bd956 (patch) | |
tree | b71711ca9e640cdcc93641fc81616ebb8c72bcd6 /engines/sludge | |
parent | 639f20f16834e813a75293e1d60f6953560799f2 (diff) | |
download | scummvm-rg350-15e7f5c48e4e2747223d04445902fc13f23bd956.tar.gz scummvm-rg350-15e7f5c48e4e2747223d04445902fc13f23bd956.tar.bz2 scummvm-rg350-15e7f5c48e4e2747223d04445902fc13f23bd956.zip |
SLUDGE: fix unmatched delete []
Diffstat (limited to 'engines/sludge')
-rw-r--r-- | engines/sludge/objtypes.cpp | 4 | ||||
-rw-r--r-- | engines/sludge/sludger.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/sludge/objtypes.cpp b/engines/sludge/objtypes.cpp index ffd2c83a8b..8b660fc593 100644 --- a/engines/sludge/objtypes.cpp +++ b/engines/sludge/objtypes.cpp @@ -166,8 +166,8 @@ void removeObjectType(objectType *oT) { // fclose (debuggy2); *huntRegion = oT->next; - delete oT->allCombis; - delete oT->screenName; + delete []oT->allCombis; + delete []oT->screenName; delete oT; return; } else { diff --git a/engines/sludge/sludger.cpp b/engines/sludge/sludger.cpp index cc30de2031..c9005e3ff6 100644 --- a/engines/sludge/sludger.cpp +++ b/engines/sludge/sludger.cpp @@ -546,7 +546,7 @@ bool initSludge(const char *filename) { if (chdir(dataFolder)) return fatal("This game's data folder is inaccessible!\nI can't access the following directory (maybe there's a file with the same name, or maybe it's read-protected):", dataFolder); #endif - delete dataFolder; + delete []dataFolder; } positionStatus(10, winHeight - 15); |