From: Anthony GEAY Date: Fri, 19 Feb 2021 21:24:59 +0000 (+0100) Subject: WIP X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9d012f3c30f1880877d654b0d53b5ccedc48d5d5;p=modules%2Fkernel.git WIP --- diff --git a/src/NamingService/SALOME_Fake_NamingService.cxx b/src/NamingService/SALOME_Fake_NamingService.cxx index 2bda138c2..5e6260b5d 100644 --- a/src/NamingService/SALOME_Fake_NamingService.cxx +++ b/src/NamingService/SALOME_Fake_NamingService.cxx @@ -62,6 +62,6 @@ CORBA::Object_ptr SALOME_Fake_NamingService::Resolve(const char* Path) std::string pathCpp(Path); auto it = _map.find(pathCpp); if( it != _map.end() ) - return (*it).second; + return CORBA::Object::_duplicate((*it).second); return CORBA::Object::_nil(); }