From d826413297907a50c493f37d6ef3e0c8e8ac008e Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 13 Jan 2005 14:29:42 +0000 Subject: [PATCH] PAL7402. Avoid decrement of pd_refCount of subMesh at exit from GetSubMesh() --- src/SMESH_I/SMESH_Mesh_i.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index 1108d14aa..5673c9bd4 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -509,7 +509,7 @@ SMESH::SMESH_subMesh_ptr SMESH_Mesh_i::GetSubMesh(GEOM::GEOM_Object_ptr aSubShap catch(SALOME_Exception & S_ex) { THROW_SALOME_CORBA_EXCEPTION(S_ex.what(), SALOME::BAD_PARAM); } - return subMesh; + return subMesh._retn(); } //============================================================================= -- 2.39.2