From: eap Date: Wed, 6 May 2009 13:23:57 +0000 (+0000) Subject: 0020340: EDF 1022 SMESH : Crash with FindNodeClosestTo in a second new study X-Git-Tag: V5_1_2rc1~44 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=52aa1d3b406a65ed3e98eb24779f7fcb4c06f26e;p=modules%2Fsmesh.git 0020340: EDF 1022 SMESH : Crash with FindNodeClosestTo in a second new study Nullify mesh after TNodeSearcherDeleter::Unset() --- diff --git a/src/SMESH_I/SMESH_MeshEditor_i.cxx b/src/SMESH_I/SMESH_MeshEditor_i.cxx index 728bf2be1..a68bd8fb2 100644 --- a/src/SMESH_I/SMESH_MeshEditor_i.cxx +++ b/src/SMESH_I/SMESH_MeshEditor_i.cxx @@ -80,7 +80,7 @@ namespace { SMDSAbs_ElementType myPreviewType; // type to show //!< Constructor TPreviewMesh(SMDSAbs_ElementType previewElements = SMDSAbs_All) { - _isShapeToMesh = _id =_studyId =_idDoc = 0; + _isShapeToMesh = (_id =_studyId =_idDoc = 0); _myMeshDS = new SMESHDS_Mesh( _id, true ); myPreviewType = previewElements; } @@ -199,6 +199,7 @@ namespace { for (sm = subMeshes.begin(); sm != subMeshes.end(); sm++) sm->second->DeleteEventListener( this ); } + myMesh = 0; } };