mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-27 23:00:33 +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);
|
Interface_DataMapIteratorOfDataMapOfIntegerTransient anItr (_mapIDDocument);
|
||||||
#endif
|
#endif
|
||||||
for (; anItr.More(); anItr.Next())
|
for (; anItr.More(); anItr.Next())
|
||||||
|
{
|
||||||
Close(anItr.Key());
|
Close(anItr.Key());
|
||||||
|
anItr.Initialize( _mapIDDocument ); // anItr becomes invalid at _mapIDDocument.UnBind(docId)
|
||||||
|
}
|
||||||
_mapIDDocument.Clear();
|
_mapIDDocument.Clear();
|
||||||
_objects.Clear();
|
_objects.Clear();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user