mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-29 23:30:33 +05:00
21948: EDF SMESH : Memory is not freed when deleting a mesh
Elimenate memory leaks on CORBA objects, servants of SALOMEDS objects etc
This commit is contained in:
parent
413bba9e87
commit
64ed2f3e93
@ -554,9 +554,10 @@ QString GEOMBase_Helper::addInStudy( GEOM::GEOM_Object_ptr theObj, const char* t
|
||||
getGeomEngine()->AddInStudy(aStudyDS, theObj, theName, aFatherObj);
|
||||
|
||||
QString anEntry;
|
||||
if ( !aSO->_is_nil() )
|
||||
anEntry = aSO->GetID();
|
||||
|
||||
if ( !aSO->_is_nil() ) {
|
||||
CORBA::String_var entry = aSO->GetID();
|
||||
anEntry = entry.in();
|
||||
}
|
||||
// Each dialog is responsible for this method implementation,
|
||||
// default implementation does nothing
|
||||
restoreSubShapes(aStudyDS, aSO);
|
||||
@ -770,7 +771,6 @@ bool GEOMBase_Helper::commitCommand( const char* )
|
||||
//================================================================
|
||||
bool GEOMBase_Helper::hasCommand() const
|
||||
{
|
||||
bool res = (bool) myCommand;
|
||||
return (bool)myCommand;
|
||||
}
|
||||
|
||||
|
@ -206,7 +206,7 @@ char* GEOM_Object_i::GetName()
|
||||
char* aName = _impl->GetName();
|
||||
if (aName)
|
||||
return aName; // this is already copy of pointer (see implementation of _impl)
|
||||
return strdup("");
|
||||
return CORBA::string_dup("");
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user