From: vsr Date: Fri, 26 Oct 2018 14:43:07 +0000 (+0300) Subject: 0023593: [CEA 2265] : Segmentation fault when opening a med file X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f928b056b7eccebce9e4c009a4ef83f98876a52b;p=modules%2Fyacs.git 0023593: [CEA 2265] : Segmentation fault when opening a med file --- diff --git a/src/KernelHelpers/SALOME_KernelServices.cxx b/src/KernelHelpers/SALOME_KernelServices.cxx index 6616ab8a6..31be71e55 100644 --- a/src/KernelHelpers/SALOME_KernelServices.cxx +++ b/src/KernelHelpers/SALOME_KernelServices.cxx @@ -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. } /**