From: vsr Date: Fri, 16 Oct 2009 16:23:31 +0000 (+0000) Subject: IPAL12411: SIGSEGV on second closing of YACS module X-Git-Tag: RELIQUAT_5x_30102009~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e4614cad93c59b34eeb4be0ed132e41cdd539919;p=modules%2Fgui.git IPAL12411: SIGSEGV on second closing of YACS module --- diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index dab5b8143..594600abb 100755 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -88,6 +88,9 @@ CAM_Application::CAM_Application( const bool autoLoad ) */ CAM_Application::~CAM_Application() { + for ( QList::const_iterator it = myModules.begin(); it != myModules.end(); ++it ) + delete *it; + myModules.clear(); } /*! @@ -437,9 +440,6 @@ void CAM_Application::beforeCloseDoc( SUIT_Study* theDoc ) void CAM_Application::afterCloseDoc() { - for ( QList::const_iterator it = myModules.begin(); it != myModules.end(); ++it ) - delete *it; - myModules.clear(); } /*!