From b3abea817b5f24520a5ad448ea2c8a02b601e6d4 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 1 Aug 2012 10:21:26 +0000 Subject: [PATCH] fix memory leak --- Mesh/DivideAndConquer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mesh/DivideAndConquer.cpp b/Mesh/DivideAndConquer.cpp index b10c8fb7d5..e5f74ff9ad 100644 --- a/Mesh/DivideAndConquer.cpp +++ b/Mesh/DivideAndConquer.cpp @@ -828,7 +828,7 @@ DocRecord::DocRecord(int n) DocRecord::~DocRecord() { if(points) delete [] points; - if(triangles) delete []triangles; + if(triangles) delete [] triangles; if(_hull) delete [] _hull; if (_adjacencies){ for(int i = 0; i < numPoints; i++) @@ -842,7 +842,7 @@ void DocRecord::MakeMeshWithPoints() if(numPoints < 3) return; BuildDelaunay(); ConvertDListToTriangles(); - //RemoveAllDList(); + RemoveAllDList(); } void DocRecord::Voronoi() -- GitLab