Salome HOME
Fix memory leaks
authorvsr <vsr@opencascade.com>
Thu, 26 Feb 2015 11:15:47 +0000 (14:15 +0300)
committervsr <vsr@opencascade.com>
Thu, 26 Feb 2015 11:15:47 +0000 (14:15 +0300)
src/GEOM_I/GEOM_Gen_i.cc

index 3719658f331c53a8453e24fe00df900740e45f4a..3c6a97386e0bdcfd501b3419ecf1141d10138b82 100755 (executable)
@@ -143,6 +143,9 @@ GEOM_Gen_i::GEOM_Gen_i(CORBA::ORB_ptr            orb,
 GEOM_Gen_i::~GEOM_Gen_i() {
   delete name_service;
   delete _impl;
+  std::map<std::string, GEOM_GenericOperationsCreator*>::const_iterator it;
+  for ( it = myOpCreatorMap.begin(); it != myOpCreatorMap.end(); ++it)
+    delete (*it).second;
 }