]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
21948: EDF SMESH : Memory is not freed when deleting a mesh
authoreap <eap@opencascade.com>
Fri, 14 Dec 2012 12:20:42 +0000 (12:20 +0000)
committereap <eap@opencascade.com>
Fri, 14 Dec 2012 12:20:42 +0000 (12:20 +0000)
-  else _name_service->Register(Study, CORBA::string_dup(aStudyImpl->Name().c_str()));
+  else _name_service->Register(Study, aStudyImpl->Name().c_str());

src/SALOMEDS/SALOMEDS_StudyManager_i.cxx

index 9ba8b7e71fb18de21b455d6af3f5541834b122bd..7c87675b973af455cb4f1fead0ded4ca2fdc884b 100644 (file)
@@ -176,7 +176,7 @@ SALOMEDS::Study_ptr  SALOMEDS_StudyManager_i::Open(const char* aUrl)
   // Register study in the naming service
   // Path to acces the study
   if(!_name_service->Change_Directory("/Study")) MESSAGE( "Unable to access the study directory" )
-  else _name_service->Register(Study, CORBA::string_dup(aStudyImpl->Name().c_str()));
+  else _name_service->Register(Study, aStudyImpl->Name().c_str());
 
   return Study._retn();
 }