From 2b3610aa6c89727ca0681c6fdb9ff6e7164e3219 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 29 May 2001 13:31:25 +0000
Subject: [PATCH] Free

---
 Mesh/Simplex.cpp | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/Mesh/Simplex.cpp b/Mesh/Simplex.cpp
index e81969c25d..d84c5f709f 100644
--- a/Mesh/Simplex.cpp
+++ b/Mesh/Simplex.cpp
@@ -1,4 +1,4 @@
-// $Id: Simplex.cpp,v 1.12 2001-05-20 19:24:53 geuzaine Exp $
+// $Id: Simplex.cpp,v 1.13 2001-05-29 13:31:25 geuzaine Exp $
 
 #include "Gmsh.h"
 #include "Const.h"
@@ -353,8 +353,11 @@ Simplex *Create_Simplex (Vertex * v1, Vertex * v2, Vertex * v3, Vertex * v4){
 }
 
 void Free_Simplex (void *a, void *b){
-  //  Simplex *s = *(Simplex**)a;
-  //if(s) Free(s);
+  Simplex *s = *(Simplex**)a;
+  if(s){
+    Free(s);
+    s = NULL;
+  }
 }
 
 Simplex *Create_Quadrangle (Vertex * v1, Vertex * v2, Vertex * v3, Vertex * v4){
-- 
GitLab