From: eap Date: Fri, 14 Dec 2012 12:20:42 +0000 (+0000) Subject: 21948: EDF SMESH : Memory is not freed when deleting a mesh X-Git-Tag: B4NGCMakeInt~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6acc0538c4ab5b7e83e23d35950417d122e0e9ad;p=modules%2Fkernel.git 21948: EDF SMESH : Memory is not freed when deleting a mesh - else _name_service->Register(Study, CORBA::string_dup(aStudyImpl->Name().c_str())); + else _name_service->Register(Study, aStudyImpl->Name().c_str()); --- diff --git a/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx b/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx index 9ba8b7e71..7c87675b9 100644 --- a/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx +++ b/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx @@ -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(); }