Skip to content

Commit

Permalink
SLUDGE: fix unmatched delete []
Browse files Browse the repository at this point in the history
  • Loading branch information
yinsimei authored and sev- committed Jul 13, 2017
1 parent 639f20f commit 15e7f5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions engines/sludge/objtypes.cpp
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion engines/sludge/sludger.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 15e7f5c

Please sign in to comment.