From c69c1401a14200a9926407f2d4200c136257b2df Mon Sep 17 00:00:00 2001 From: caremoli Date: Mon, 26 Jan 2009 17:48:33 +0000 Subject: [PATCH] CCAR: remove delete of factory objects in Superv_Component destructor as the map is now a class attribute and factory objects are static ones --- src/DSC/DSC_User/Superv_Component_i.cxx | 8 -------- 1 file changed, 8 deletions(-) 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 -- 2.39.2