From 6acc0538c4ab5b7e83e23d35950417d122e0e9ad Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 14 Dec 2012 12:20:42 +0000 Subject: [PATCH] 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()); --- src/SALOMEDS/SALOMEDS_StudyManager_i.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.39.2