]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
0023453: [CEA 2130] MED module crashes on FD24 with SALOME 8.3.0
authorakl <akl@opencascade.com>
Mon, 19 Jun 2017 13:52:00 +0000 (16:52 +0300)
committerakl <akl@opencascade.com>
Mon, 19 Jun 2017 13:52:00 +0000 (16:52 +0300)
src/MEDCalc/cmp/MEDPresentationManager_i.cxx

index 6317ed3e44952dbcb99300aaa5add7b6fb89ee72..134ada1b5904a32ed49c12e1ed6208c27e63c3e8 100644 (file)
@@ -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!!");