Salome HOME
[MEDCalc] Bug fix on ParaVis dump.
[modules/med.git] / src / MEDCalc / cmp / MEDPresentationManager_i.cxx
index 9fd1a1e6ac0fa1857c81dac465cb54828a56686b..63ffed2af6aa972488d95ffa52c172946317043d 100644 (file)
@@ -324,12 +324,12 @@ MEDPresentationManager_i::getActiveViewPythonId()
 //  }
 //}
 
-char*
+char *
 MEDPresentationManager_i::getParavisDump(MEDPresentation::TypeID presentationID)
 {
   MEDPresentation* pres = _getPresentation(presentationID);
   if (pres) {
-    return (char*) pres->paravisDump().c_str();
+    return CORBA::string_dup(pres->paravisDump().c_str());
   }
   else
     throw KERNEL::createSalomeException("getParavisDump(): presentation not found!!");