]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021480: EDF 2084 SMESH: SIGSEGV when validating Netgen3D hypothesis
authoreap <eap@opencascade.com>
Tue, 24 Jan 2012 13:01:34 +0000 (13:01 +0000)
committereap <eap@opencascade.com>
Tue, 24 Jan 2012 13:01:34 +0000 (13:01 +0000)
  In ~TPreviewMesh(), nullify _myMeshDS after destruction

src/SMESH_I/SMESH_MeshEditor_i.cxx

index 981a90ac9c17f039ece51bdb9be6b158b9c9f755..448eef042c0a014d8b3d98be969ac156dad118a7 100644 (file)
@@ -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,