From 6041ee73b43d82295537fffa4185d3a9483ebbff Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 6 May 2009 13:54:22 +0000 Subject: [PATCH] 0020340: EDF 1022 SMESH : Crash with FindNodeClosestTo in a second new study Nullify mesh after TNodeSearcherDeleter::Unset() --- src/SMESH_I/SMESH_MeshEditor_i.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SMESH_I/SMESH_MeshEditor_i.cxx b/src/SMESH_I/SMESH_MeshEditor_i.cxx index 9dc0758a4..54d112823 100644 --- a/src/SMESH_I/SMESH_MeshEditor_i.cxx +++ b/src/SMESH_I/SMESH_MeshEditor_i.cxx @@ -23,7 +23,6 @@ // File : SMESH_MeshEditor_i.cxx // Author : Nicolas REJNERI // Module : SMESH -// $Header$ // #include "SMESH_MeshEditor_i.hxx" @@ -81,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; } @@ -200,6 +199,7 @@ namespace { for (sm = subMeshes.begin(); sm != subMeshes.end(); sm++) sm->second->DeleteEventListener( this ); } + myMesh = 0; } }; -- 2.39.2