mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 07:52:03 +05:00
remove memory leak on strdup during TCollection_AsciiString creation
This commit is contained in:
parent
810911a311
commit
93dbf2d13f
@ -247,7 +247,7 @@ SALOMEDS::SObject_ptr GEOM_Gen_i::PublishInStudy(SALOMEDS::Study_ptr theStudy,
|
|||||||
aShapeName = aNewShapeName;
|
aShapeName = aNewShapeName;
|
||||||
}
|
}
|
||||||
else // MOST PROBABLY CALLED FROM GEOM GUI (ALREADY WITH VALID NAME)
|
else // MOST PROBABLY CALLED FROM GEOM GUI (ALREADY WITH VALID NAME)
|
||||||
aShapeName = TCollection_AsciiString(strdup(theName));
|
aShapeName = TCollection_AsciiString((char *)theName);
|
||||||
|
|
||||||
//Set the study entry as a name of the published GEOM_Object
|
//Set the study entry as a name of the published GEOM_Object
|
||||||
aShape->SetStudyEntry(aResultSO->GetID());
|
aShape->SetStudyEntry(aResultSO->GetID());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user