]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix error at launchtime of GUI of SALOME agy/esm_ssl
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 19 Aug 2021 12:20:50 +0000 (14:20 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 19 Aug 2021 12:20:50 +0000 (14:20 +0200)
src/SALOMEDS/SALOMEDS.cxx

index 6186b4b8131933e71e938efe7a626ea41103f37f..b5f174d15cd1780e1a761bef852a3859dd9d213d 100644 (file)
@@ -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