Skip to content

Commit 70d87f5

Browse files
authored
[GEN][ZH] Fix new/delete mismatches in tools (#1223)
1 parent 30c2289 commit 70d87f5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Core/Tools/W3DView/W3DView.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ CAboutDlg::OnInitDialog (void)
472472
version_minor = pversion_info->dwFileVersionLS;
473473
}
474474
}
475-
SAFE_DELETE (pblock);
475+
SAFE_DELETE_ARRAY(pblock);
476476
}
477477

478478
// Put the version string into the dialog

Generals/Code/Tools/WorldBuilder/src/WHeightMapEdit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ void WorldHeightMapEdit::autoBlendOut(Int xIndex, Int yIndex, Int globalEdgeClas
13461346
delete pCurNode;
13471347
}
13481348

1349-
if (pProcessed) delete pProcessed;
1349+
if (pProcessed) delete[] pProcessed;
13501350
pProcessed = NULL;
13511351
}
13521352

GeneralsMD/Code/Tools/WorldBuilder/src/WHeightMapEdit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ void WorldHeightMapEdit::autoBlendOut(Int xIndex, Int yIndex, Int globalEdgeClas
13231323
delete pCurNode;
13241324
}
13251325

1326-
if (pProcessed) delete pProcessed;
1326+
if (pProcessed) delete[] pProcessed;
13271327
pProcessed = NULL;
13281328
}
13291329

0 commit comments

Comments
 (0)