From 9d012f3c30f1880877d654b0d53b5ccedc48d5d5 Mon Sep 17 00:00:00 2001 From: Anthony GEAY Date: Fri, 19 Feb 2021 22:24:59 +0100 Subject: [PATCH] WIP --- src/NamingService/SALOME_Fake_NamingService.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.39.2