From 5d1226f244b8c5288a87eb915f6be0e5f555961f Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 5 Feb 2002 20:13:00 +0000 Subject: [PATCH] stupid --- Mesh/Vertex.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Mesh/Vertex.cpp b/Mesh/Vertex.cpp index 3baf9166c1..9965f8a6ce 100644 --- a/Mesh/Vertex.cpp +++ b/Mesh/Vertex.cpp @@ -1,4 +1,4 @@ -// $Id: Vertex.cpp,v 1.16 2001-12-04 12:06:50 geuzaine Exp $ +// $Id: Vertex.cpp,v 1.17 2002-02-05 20:13:00 geuzaine Exp $ #include "Gmsh.h" #include "Numeric.h" @@ -99,7 +99,11 @@ void Delete_Vertex ( Vertex *pV ){ } void Free_Vertex (void *a, void *b){ - Delete_Vertex ( *(Vertex**)a ); + Vertex *v = *(Vertex**)a; + if(v){ + Delete_Vertex(v); + v = NULL; + } } int compareVertex (const void *a, const void *b){ -- GitLab