mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 01:10:36 +05:00
Correct string allocation
This commit is contained in:
parent
ccbdd44178
commit
8a0889f44b
@ -134,8 +134,8 @@ void GEOM_Object_i::SetStudyEntry(const char* theEntry)
|
|||||||
char* GEOM_Object_i::GetStudyEntry()
|
char* GEOM_Object_i::GetStudyEntry()
|
||||||
{
|
{
|
||||||
TCollection_AsciiString anEntry = _impl->GetAuxData();
|
TCollection_AsciiString anEntry = _impl->GetAuxData();
|
||||||
if(!anEntry.IsEmpty()) return strdup(anEntry.ToCString());
|
if(!anEntry.IsEmpty()) return CORBA::string_dup(anEntry.ToCString());
|
||||||
return strdup("");
|
return CORBA::string_dup("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user