From 1ef48564e516df97f5ac600fe8b6ba1e8c6318a4 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 24 Jan 2012 13:01:34 +0000 Subject: [PATCH] 0021480: EDF 2084 SMESH: SIGSEGV when validating Netgen3D hypothesis In ~TPreviewMesh(), nullify _myMeshDS after destruction --- src/SMESH_I/SMESH_MeshEditor_i.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.39.2