From: eap Date: Fri, 27 Jul 2012 16:06:43 +0000 (+0000) Subject: In ~GEOM_Engine(), prevent from SIGSEGV after closing the first document X-Git-Tag: V6_6_0a1~60 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5a00f0db9f6640bca99dea70a5ce037cbc40c050;p=modules%2Fgeom.git In ~GEOM_Engine(), prevent from SIGSEGV after closing the first document --- diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx index cc2849598..6efcaf7e0 100644 --- a/src/GEOM/GEOM_Engine.cxx +++ b/src/GEOM/GEOM_Engine.cxx @@ -244,8 +244,10 @@ GEOM_Engine::~GEOM_Engine() Interface_DataMapIteratorOfDataMapOfIntegerTransient anItr (_mapIDDocument); #endif for (; anItr.More(); anItr.Next()) + { Close(anItr.Key()); - + anItr.Initialize( _mapIDDocument ); // anItr becomes invalid at _mapIDDocument.UnBind(docId) + } _mapIDDocument.Clear(); _objects.Clear(); }