In ~GEOM_Engine(), prevent from SIGSEGV after closing the first document

This commit is contained in:
eap 2012-07-27 16:06:43 +00:00
parent e184734288
commit 5a00f0db9f

View File

@ -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();
}