]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
0023593: [CEA 2265] : Segmentation fault when opening a med file
authorvsr <vsr@opencascade.com>
Fri, 26 Oct 2018 14:43:07 +0000 (17:43 +0300)
committervsr <vsr@opencascade.com>
Fri, 26 Oct 2018 14:43:07 +0000 (17:43 +0300)
src/KernelHelpers/SALOME_KernelServices.cxx

index 6616ab8a6e3c2046e4a654af2bab9a089661a205..31be71e551f0481ddf84bd61d6b99fcb59a188f4 100644 (file)
@@ -71,7 +71,7 @@ namespace KERNEL {
       CORBA::Object_ptr anObject = aNamingService->Resolve("/Study");
       aStudy = SALOMEDS::Study::_narrow(anObject);
     }
-    return aStudy;
+    return SALOMEDS::Study::_duplicate(aStudy); // we duplicate it here to allow using it with the var client instances.
   }
 
   /**