From e3caaea6bb1837f36e478599911d45853033b5b8 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 16 Jan 2008 21:11:19 +0000 Subject: [PATCH] fix nasty memory bug --- Mesh/meshGRegionDelaunayInsertion.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Mesh/meshGRegionDelaunayInsertion.h b/Mesh/meshGRegionDelaunayInsertion.h index 30c002b895..68b9ca8bd5 100644 --- a/Mesh/meshGRegionDelaunayInsertion.h +++ b/Mesh/meshGRegionDelaunayInsertion.h @@ -226,9 +226,10 @@ private: void changeTetRadius ( iterator it , double r) { + MTet4 *t = *it; allTets.erase(it); - (*it)->forceRadius(r); - allTets.insert(*it); + t->forceRadius(r); + allTets.insert(t); } container & getAllTets () {return allTets;} -- GitLab