From 2b42634d88d121c8a74b7fb29fa3603c78da4ac1 Mon Sep 17 00:00:00 2001 From: Erick Ahmed Date: Tue, 11 Nov 2025 23:32:40 +0100 Subject: [PATCH] occt: improve delete point with actual clearing from memory instead of nullification --- src/occt/point.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/occt/point.cpp b/src/occt/point.cpp index 5df99f5..ae1b122 100644 --- a/src/occt/point.cpp +++ b/src/occt/point.cpp @@ -24,6 +24,6 @@ void coord_point(const TopoDS_Shape& shape, double* x, double* y, double* z) { *z = point.Z(); } -void clear_point(TopoDS_Shape& shape) { - shape.Nullify(); +void delete_shape(TopoDS_Shape* shape) { + delete shape; }