From 848e882d4df9f171adf51e9ee275a1a17db055de Mon Sep 17 00:00:00 2001 From: akl Date: Mon, 19 Jun 2017 16:52:00 +0300 Subject: [PATCH] 0023453: [CEA 2130] MED module crashes on FD24 with SALOME 8.3.0 --- src/MEDCalc/cmp/MEDPresentationManager_i.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!!"); -- 2.39.2