From: eap Date: Tue, 24 Jan 2012 13:01:34 +0000 (+0000) Subject: 0021480: EDF 2084 SMESH: SIGSEGV when validating Netgen3D hypothesis X-Git-Tag: V6_5_0a1~179 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1ef48564e516df97f5ac600fe8b6ba1e8c6318a4;p=modules%2Fsmesh.git 0021480: EDF 2084 SMESH: SIGSEGV when validating Netgen3D hypothesis In ~TPreviewMesh(), nullify _myMeshDS after destruction --- diff --git a/src/SMESH_I/SMESH_MeshEditor_i.cxx b/src/SMESH_I/SMESH_MeshEditor_i.cxx index 981a90ac9..448eef042 100644 --- a/src/SMESH_I/SMESH_MeshEditor_i.cxx +++ b/src/SMESH_I/SMESH_MeshEditor_i.cxx @@ -94,7 +94,7 @@ namespace { myPreviewType = previewElements; } //!< Destructor - virtual ~TPreviewMesh() { delete _myMeshDS; } + virtual ~TPreviewMesh() { delete _myMeshDS; _myMeshDS = 0; } //!< Copy a set of elements void Copy(const TIDSortedElemSet & theElements, TIDSortedElemSet& theCopyElements,