From 32bed2c94028761e04ca452deea6fcd9f7b4af0c Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sun, 18 Nov 2012 09:08:59 +0000 Subject: [PATCH] fix mem leak --- libsrc/meshing/curvedelems.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsrc/meshing/curvedelems.cpp b/libsrc/meshing/curvedelems.cpp index 3d4484a7..d0a30973 100644 --- a/libsrc/meshing/curvedelems.cpp +++ b/libsrc/meshing/curvedelems.cpp @@ -486,7 +486,8 @@ namespace netgen CurvedElements :: ~CurvedElements() { - ; + for (int i = 0; i < jacpols2.Size(); i++) + delete jacpols2[i]; }