0021480: EDF 2084 SMESH: SIGSEGV when validating Netgen3D hypothesis

In ~TPreviewMesh(), nullify _myMeshDS after destruction
This commit is contained in:
eap 2012-01-24 13:01:34 +00:00
parent 6a0dd162a9
commit 1ef48564e5

View 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,