From: mpa Date: Fri, 22 Mar 2013 08:03:32 +0000 (+0000) Subject: IPAL0051790: TC7.2.0: SIGSEGV fatal error after close study X-Git-Tag: V7_2_0b1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=81f45cc1076110965c403b903c5b44147c613049;p=modules%2Fgui.git IPAL0051790: TC7.2.0: SIGSEGV fatal error after close study --- diff --git a/src/SUIT/SUIT_SelectionMgr.cxx b/src/SUIT/SUIT_SelectionMgr.cxx index 56c1759ca..b6b2a0a2b 100755 --- a/src/SUIT/SUIT_SelectionMgr.cxx +++ b/src/SUIT/SUIT_SelectionMgr.cxx @@ -41,8 +41,10 @@ myIsSelChangeEnabled( true ) /*!destructor. mySelectors auto delete.*/ SUIT_SelectionMgr::~SUIT_SelectionMgr() { - for ( SelectorList::iterator it = mySelectors.begin(); it != mySelectors.end(); ++it ) + while( !mySelectors.empty() ) { + SelectorList::iterator it = mySelectors.begin(); delete *it; + } } /*!Add selector \a sel to selectors list,if it's not exists in list.*/