From: caremoli Date: Mon, 26 Jan 2009 17:48:33 +0000 (+0000) Subject: CCAR: remove delete of factory objects in Superv_Component destructor X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c69c1401a14200a9926407f2d4200c136257b2df;p=modules%2Fkernel.git CCAR: remove delete of factory objects in Superv_Component destructor as the map is now a class attribute and factory objects are static ones --- diff --git a/src/DSC/DSC_User/Superv_Component_i.cxx b/src/DSC/DSC_User/Superv_Component_i.cxx index 49eb37515..15bb1894f 100644 --- a/src/DSC/DSC_User/Superv_Component_i.cxx +++ b/src/DSC/DSC_User/Superv_Component_i.cxx @@ -66,17 +66,9 @@ Superv_Component_i::Superv_Component_i(CORBA::ORB_ptr orb, Superv_Component_i::~Superv_Component_i() { - factory_map_t::iterator begin = _factory_map.begin(); - factory_map_t::iterator end = _factory_map.end(); - for(;begin!=end;begin++) - { - delete begin->second; - } - my_superv_ports_it = my_superv_ports.begin(); for(;my_superv_ports_it != my_superv_ports.end();my_superv_ports_it++) delete my_superv_ports_it->second; - } void