mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-13 10:10:34 +05:00
In ~GEOM_Engine(), prevent from SIGSEGV after closing the first document
This commit is contained in:
parent
e184734288
commit
5a00f0db9f
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user