From 01fd8ef50632672adfeaad86c15b5cbed84a356b Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Tue, 17 Aug 2021 10:25:20 +0200 Subject: [PATCH] Memory leak hunting --- src/SMESH_I/SMESH_Gen_i_1.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }