From 627c325129a03481527ffcab8a910283022d7dd1 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Thu, 19 Aug 2021 14:20:50 +0200 Subject: [PATCH] Fix error at launchtime of GUI of SALOME --- src/SALOMEDS/SALOMEDS.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.2