X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_Filter_i.cxx;h=94c76ec3d551093afaeea6ab2f01da4a1cec27e5;hp=46a46b18dfa5a1886bf191925ca594a07dcd2013;hb=07589de92eb5d8e7d4e3bfde8b26f0d69251acf0;hpb=6f7386be594ca912c7b87c883e051abf7e331c79 diff --git a/src/SMESH_I/SMESH_Filter_i.cxx b/src/SMESH_I/SMESH_Filter_i.cxx index 46a46b18d..94c76ec3d 100644 --- a/src/SMESH_I/SMESH_Filter_i.cxx +++ b/src/SMESH_I/SMESH_Filter_i.cxx @@ -839,8 +839,8 @@ BelongToGeom_i::BelongToGeom_i() BelongToGeom_i::~BelongToGeom_i() { - delete myShapeName; - delete myShapeID; + CORBA::string_free( myShapeName ); + CORBA::string_free( myShapeID ); } void BelongToGeom_i::SetGeom( GEOM::GEOM_Object_ptr theGeom ) @@ -872,18 +872,18 @@ FunctorType BelongToGeom_i::GetFunctorType() void BelongToGeom_i::SetShapeName( const char* theName ) { - delete myShapeName; - myShapeName = strdup( theName ); + CORBA::string_free( myShapeName ); + myShapeName = CORBA::string_dup( theName ); myBelongToGeomPtr->SetGeom( getShapeByName( myShapeName ) ); TPythonDump()<SetSurface( getShapeByName( myShapeName ), (SMDSAbs_ElementType)theType ); TPythonDump()<SetGeom( getShapeByName( myShapeName ) ); TPythonDump()<_this(); @@ -3713,7 +3713,7 @@ FilterLibrary_i::FilterLibrary_i() FilterLibrary_i::~FilterLibrary_i() { - delete myFileName; + CORBA::string_free( myFileName ); //TPythonDump()<