diff --git a/Mesh/Generator.cpp b/Mesh/Generator.cpp index 3ee82755482f159b21d52bcb50e2b97d6f859901..db87d584bcaad6c5f71703a7f8c0a4f67006ebb1 100644 --- a/Mesh/Generator.cpp +++ b/Mesh/Generator.cpp @@ -1,4 +1,4 @@ -// $Id: Generator.cpp,v 1.41 2003-03-11 05:57:06 geuzaine Exp $ +// $Id: Generator.cpp,v 1.42 2003-03-11 05:58:04 geuzaine Exp $ // // Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle // @@ -185,17 +185,15 @@ void Init_Mesh(Mesh * M, int all) ExitExtrude(); - // During extrusion, - Tree_Action(M->Vertices, Free_Vertex); Tree_Delete(M->Vertices); - Tree_Action(M->Points, Free_Vertex); - Tree_Delete(M->Points); - Tree_Action(M->VertexEdges, Free_Vertex); Tree_Delete(M->VertexEdges); + Tree_Action(M->Points, Free_Vertex); + Tree_Delete(M->Points); + // Note: don't free the simplices here (with // Tree_Action (M->Simplexes, Free_Simplex)): we free them // in each curve, surface, volume