Skip to content

Commit

Permalink
FIX: Use delete [] to free array memory
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Polkovnikov authored and lassoan committed Sep 15, 2022
1 parent 0de5e63 commit 24d29d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Beams/Logic/vtkSlicerMLCPositionLogic.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ vtkMRMLMarkupsCurveNode* vtkSlicerMLCPositionLogic::CalculatePositionConvexHullC
curveNode->AddControlPoint(point); // add point to the closed curve
}

delete xyCoordinates;
delete [] xyCoordinates;
return curveNode.GetPointer();
}
else
Expand Down

0 comments on commit 24d29d5

Please sign in to comment.