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: V8_4_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=848e882d4df9f171adf51e9ee275a1a17db055de;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!!");