mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-06 21:24:17 +05:00
Fix SIGSEGV in destructor of GEOM_Engine.
This commit is contained in:
parent
115b890476
commit
481b82fcad
@ -189,10 +189,12 @@ GEOM_Engine::GEOM_Engine()
|
||||
GEOM_Engine::~GEOM_Engine()
|
||||
{
|
||||
GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient It(_objects);
|
||||
std::list< Handle(GEOM_Object) > objs;
|
||||
for(; It.More(); It.Next())
|
||||
{
|
||||
RemoveObject(Handle(GEOM_Object)::DownCast(It.Value()));
|
||||
}
|
||||
objs.push_back( Handle(GEOM_Object)::DownCast(It.Value()) );
|
||||
std::list< Handle(GEOM_Object) >::iterator objit;
|
||||
for(objit = objs.begin(); objit != objs.end(); ++objit)
|
||||
RemoveObject(*objit);
|
||||
|
||||
//Close all documents not closed
|
||||
for(Interface_DataMapIteratorOfDataMapOfIntegerTransient anItr(_mapIDDocument); anItr.More(); anItr.Next())
|
||||
|
Loading…
Reference in New Issue
Block a user