From: mkr Date: Thu, 7 Dec 2006 11:52:59 +0000 (+0000) Subject: Fix for PAL14049. X-Git-Tag: NPAL14357 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2a46676ee537ebc171497a5afb416dfe8f851c70;p=modules%2Fkernel.git Fix for PAL14049. --- diff --git a/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx b/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx index 9d7717f12..316eb9142 100644 --- a/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx @@ -42,8 +42,8 @@ char* SALOMEDS_AttributePythonObject_i::GetObject() SALOMEDS::Locker lock; TCollection_AsciiString aSeq(Handle(SALOMEDSImpl_AttributePythonObject):: DownCast(_impl)->GetObject().ToCString()); - return aSeq.ToCString(); - + CORBA::String_var aStr = CORBA::string_dup(aSeq.ToCString()); + return aStr._retn(); } CORBA::Boolean SALOMEDS_AttributePythonObject_i::IsScript()