Skip to content

Commit 5d4ab05

Browse files
committed
[CID 15180] MCPolygonEditTool::handler_under_point(): Free using delete[]
1 parent ab82f71 commit 5d4ab05

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

engine/src/edittool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,11 @@ uint4 MCPolygonEditTool::handle_under_point(int2 x, int2 y)
320320
for (uint4 i=0; i<npts; i++)
321321
if (MCU_point_in_rect(rects[i], x, y))
322322
{
323-
delete rects;
323+
delete[] rects;
324324
return i;
325325
}
326326

327-
delete rects;
327+
delete[] rects;
328328
return -1;
329329
}
330330

0 commit comments

Comments
 (0)