From 81f45cc1076110965c403b903c5b44147c613049 Mon Sep 17 00:00:00 2001 From: mpa Date: Fri, 22 Mar 2013 08:03:32 +0000 Subject: [PATCH] IPAL0051790: TC7.2.0: SIGSEGV fatal error after close study --- src/SUIT/SUIT_SelectionMgr.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.*/ -- 2.39.2