]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL7402. Avoid decrement of pd_refCount of subMesh at exit from GetSubMesh()
authoreap <eap@opencascade.com>
Thu, 13 Jan 2005 14:29:42 +0000 (14:29 +0000)
committereap <eap@opencascade.com>
Thu, 13 Jan 2005 14:29:42 +0000 (14:29 +0000)
src/SMESH_I/SMESH_Mesh_i.cxx

index 1108d14aa60f96db3daa9c355f08a1f641b44bbb..5673c9bd45038a12e756cc2bf6ab01aac804a726 100644 (file)
@@ -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();
 }
 
 //=============================================================================