Skip to content

Commit

Permalink
if we explicitly call new or New(), supposed to call delete
Browse files Browse the repository at this point in the history
  • Loading branch information
brlcad committed Feb 4, 2024
1 parent e45bda9 commit bf4d992
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/proc-db/surfaceintersect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,12 @@ main(int UNUSED(argc), const char **argv)
brep1.Create(surf1);
brep2.Create(surf2);
BrepBrepIntersect(&brep1, &brep2, 1e-3, 1e-9);

delete curve1;
delete curve2;
delete bezier1;
delete bezier2;

return 0;
}

Expand Down

0 comments on commit bf4d992

Please sign in to comment.