From 917b87170a688e74ac87105885c9649556c91283 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 29 Dec 2005 15:00:45 +0000 Subject: [PATCH] PAL10953: prevent sigsegv in GetHypothesisList() --- 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 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 ); -- 2.39.2