From 8a0889f44bd06ed517d254283694b63b86b92cd4 Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 23 Nov 2005 15:38:24 +0000 Subject: [PATCH] Correct string allocation --- src/GEOM_I/GEOM_Object_i.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(""); } -- 2.39.2