]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
IPAL12411: SIGSEGV on second closing of YACS module
authorvsr <vsr@opencascade.com>
Fri, 16 Oct 2009 16:23:31 +0000 (16:23 +0000)
committervsr <vsr@opencascade.com>
Fri, 16 Oct 2009 16:23:31 +0000 (16:23 +0000)
src/CAM/CAM_Application.cxx

index dab5b81430a78c10db3e5722e2ed35046a6e9526..594600abb81b70d975082d0f6f8f687775ac2e9f 100755 (executable)
@@ -88,6 +88,9 @@ CAM_Application::CAM_Application( const bool autoLoad )
 */
 CAM_Application::~CAM_Application()
 {
+  for ( QList<CAM_Module*>::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<CAM_Module*>::const_iterator it = myModules.begin(); it != myModules.end(); ++it )
-    delete *it;
-  myModules.clear();
 }
 
 /*!