]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CCAR: remove delete of factory objects in Superv_Component destructor
authorcaremoli <caremoli>
Mon, 26 Jan 2009 17:48:33 +0000 (17:48 +0000)
committercaremoli <caremoli>
Mon, 26 Jan 2009 17:48:33 +0000 (17:48 +0000)
as the map is now a class attribute and factory objects are static ones

src/DSC/DSC_User/Superv_Component_i.cxx

index 49eb3751540b11fcd817fbd9f0689edf894c505e..15bb1894fafbf26043d40e2b81d6a10c200f3b59 100644 (file)
@@ -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