From: akl Date: Mon, 19 Jun 2017 13:52:00 +0000 (+0300) Subject: 0023453: [CEA 2130] MED module crashes on FD24 with SALOME 8.3.0 X-Git-Tag: Before_python3_27062017^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6ef99a7b88ddf6aa8403b7c5a676f06e9c9ebab4;p=modules%2Fmed.git 0023453: [CEA 2130] MED module crashes on FD24 with SALOME 8.3.0 --- diff --git a/src/MEDCalc/cmp/MEDPresentationManager_i.cxx b/src/MEDCalc/cmp/MEDPresentationManager_i.cxx index 6317ed3e4..134ada1b5 100644 --- a/src/MEDCalc/cmp/MEDPresentationManager_i.cxx +++ b/src/MEDCalc/cmp/MEDPresentationManager_i.cxx @@ -94,7 +94,7 @@ MEDPresentationManager_i::getPresentationStringProperty(MEDPresentation::TypeID { MEDPresentation* pres = _getPresentation(presentationID); if (pres) { - return (char*) pres->getStringProperty(propName).c_str(); + return CORBA::string_dup(pres->getStringProperty(propName).c_str()); } else throw KERNEL::createSalomeException("getPresentationStringProperty(): presentation not found!!");