From: jfa Date: Wed, 23 Nov 2005 15:38:24 +0000 (+0000) Subject: Correct string allocation X-Git-Tag: BR_3_1_0_deb~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8a0889f44bd06ed517d254283694b63b86b92cd4;p=modules%2Fgeom.git Correct string allocation --- diff --git a/src/GEOM_I/GEOM_Object_i.cc b/src/GEOM_I/GEOM_Object_i.cc index ee5eb1b72..158d088dc 100644 --- a/src/GEOM_I/GEOM_Object_i.cc +++ b/src/GEOM_I/GEOM_Object_i.cc @@ -134,8 +134,8 @@ void GEOM_Object_i::SetStudyEntry(const char* theEntry) char* GEOM_Object_i::GetStudyEntry() { TCollection_AsciiString anEntry = _impl->GetAuxData(); - if(!anEntry.IsEmpty()) return strdup(anEntry.ToCString()); - return strdup(""); + if(!anEntry.IsEmpty()) return CORBA::string_dup(anEntry.ToCString()); + return CORBA::string_dup(""); }