From: ptv Date: Mon, 30 Oct 2006 07:29:23 +0000 (+0000) Subject: delete all modules at application destructor X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9e3ef0cd5b73576e2a2d56bd40af9887d1b5ef83;p=modules%2Fgui.git delete all modules at application destructor --- diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index baabb3970..1c71b6ed1 100755 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -59,6 +59,10 @@ myAutoLoad( autoLoad ) /*!Destructor. Do nothing.*/ CAM_Application::~CAM_Application() { + // delete all modules (or switch on autoDelete property of QPtrList in constructor ) + for ( ModuleListIterator it( myModules ); it.current(); ++it ) + delete it.current(); + myModules.clear(); } /*! Load modules, if \a myAutoLoad flag is true.\n