From: eap Date: Thu, 29 Dec 2005 15:00:45 +0000 (+0000) Subject: PAL10953: prevent sigsegv in GetHypothesisList() X-Git-Tag: T_Before_Join_BR-D5-38-2003~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=917b87170a688e74ac87105885c9649556c91283;p=modules%2Fsmesh.git PAL10953: prevent sigsegv in GetHypothesisList() --- diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index d8445554f..daf37787f 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -380,7 +380,7 @@ SMESH_Hypothesis::Hypothesis_Status int hypId = myHyp->GetId(); status = _impl->AddHypothesis(myLocSubShape, hypId); if ( !SMESH_Hypothesis::IsStatusFatal(status) ) { - _mapHypo[hypId] = myHyp; + _mapHypo[hypId] = SMESH::SMESH_Hypothesis::_duplicate( myHyp ); // assure there is a corresponding submesh if ( !_impl->IsMainShape( myLocSubShape )) { int shapeId = _impl->GetMeshDS()->ShapeToIndex( myLocSubShape );