]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CCAR: remove memeory leaks
authorcaremoli <caremoli>
Mon, 18 Feb 2008 09:42:04 +0000 (09:42 +0000)
committercaremoli <caremoli>
Mon, 18 Feb 2008 09:42:04 +0000 (09:42 +0000)
src/DSC/DSC_Basic/DSC_interface.cxx
src/DSC/DSC_Basic/DSC_interface.hxx

index b32d69bfdce21414664a93ca5a112b6ca02af2e8..399a62c229b08d1e5e17ebb5fe680a9ea3e7c462 100644 (file)
 
 Engines_DSC_interface::Engines_DSC_interface() {}
 
-Engines_DSC_interface::~Engines_DSC_interface() {}
+Engines_DSC_interface::~Engines_DSC_interface() 
+{
+  my_ports_it = my_ports.begin();
+  for(;my_ports_it != my_ports.end();my_ports_it++)
+    delete my_ports_it->second;
+
+}
 
 void
 Engines_DSC_interface::add_provides_port(Ports::Port_ptr ref, 
index 525843110c2414ea83bfa7349875ebd749de66c0..5bf5712d201c7b0e4037bd148e0557af21798f8d 100644 (file)
@@ -164,9 +164,9 @@ protected:
     std::string repository_id;
 
     // Specifique aux provides port;
-    Ports::Port_ptr provides_port_ref;
+    Ports::Port_var provides_port_ref;
 
-    Ports::PortProperties_ptr port_prop;
+    Ports::PortProperties_var port_prop;
   };
 
   typedef std::map<std::string, port_t *> ports;