From 5a00f0db9f6640bca99dea70a5ce037cbc40c050 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 27 Jul 2012 16:06:43 +0000 Subject: [PATCH] In ~GEOM_Engine(), prevent from SIGSEGV after closing the first document --- src/GEOM/GEOM_Engine.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- 2.39.2