From: Anthony Geay Date: Thu, 19 Aug 2021 12:20:50 +0000 (+0200) Subject: Fix error at launchtime of GUI of SALOME X-Git-Tag: V9_8_0a1~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=627c325129a03481527ffcab8a910283022d7dd1;p=modules%2Fkernel.git Fix error at launchtime of GUI of SALOME --- diff --git a/src/SALOMEDS/SALOMEDS.cxx b/src/SALOMEDS/SALOMEDS.cxx index 6186b4b81..b5f174d15 100644 --- a/src/SALOMEDS/SALOMEDS.cxx +++ b/src/SALOMEDS/SALOMEDS.cxx @@ -139,15 +139,15 @@ extern "C" SALOMEDS_EXPORT void CreateStudy(CORBA::ORB_ptr orb, PortableServer::POA_ptr root_poa) { - SALOME_NamingService namingService(orb); - CreateStudyNSAbstract(orb,root_poa,namingService); + SALOME_NamingService *namingService = new SALOME_NamingService(orb); + CreateStudyNSAbstract(orb,root_poa,*namingService); } SALOMEDS_EXPORT void CreateStudyWithoutNS(CORBA::ORB_ptr orb, PortableServer::POA_ptr root_poa) { - SALOME_Fake_NamingService namingService(orb); - CreateStudyNSAbstract(orb,root_poa,namingService); + SALOME_Fake_NamingService *namingService = new SALOME_Fake_NamingService(orb); + CreateStudyNSAbstract(orb,root_poa,*namingService); } SALOMEDS_EXPORT