From: Anthony Geay Date: Tue, 17 Aug 2021 08:25:20 +0000 (+0200) Subject: Memory leak hunting X-Git-Tag: V9_8_0a1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=01fd8ef50632672adfeaad86c15b5cbed84a356b;p=modules%2Fsmesh.git Memory leak hunting --- diff --git a/src/SMESH_I/SMESH_Gen_i_1.cxx b/src/SMESH_I/SMESH_Gen_i_1.cxx index 3f463f1f5..565fa023b 100644 --- a/src/SMESH_I/SMESH_Gen_i_1.cxx +++ b/src/SMESH_I/SMESH_Gen_i_1.cxx @@ -561,7 +561,8 @@ SALOMEDS::SComponent_ptr SMESH_Gen_i::PublishComponent() SALOMEDS::SComponent_wrap f_i = citer->Value(); CORBA::String_var ior_i; bool ok = f_i->ComponentIOR(ior_i.out()); - if ( ok && compDataType == f_i->ComponentDataType() && ior == ior_i.in()) { + CORBA::String_var cdt(f_i->ComponentDataType()); + if ( ok && compDataType == cdt.in() && ior == ior_i.in()) { father = f_i; break; }