]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix for PAL14049. NPAL14357 V3_2_4 V3_2_4_delivery V3_2_4pre2
authormkr <mkr@opencascade.com>
Thu, 7 Dec 2006 11:52:59 +0000 (11:52 +0000)
committermkr <mkr@opencascade.com>
Thu, 7 Dec 2006 11:52:59 +0000 (11:52 +0000)
src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx

index 9d7717f12aa20dd53861808e95db55a0ed10db3e..316eb91428575d99dbc97aeb3a364fc60c59d57d 100644 (file)
@@ -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()