From e9701f3660e1bb1e0719bf0279469bec310ee971 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 27 Aug 2009 16:49:08 +0000 Subject: [PATCH] Issue 0020458: [CEA 351] SIGSEGV on SALOME closing after Delete of VISU entry --- src/VISU_I/VISU_Prs3d_i.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/VISU_I/VISU_Prs3d_i.cc b/src/VISU_I/VISU_Prs3d_i.cc index 17710dac..4fe43410 100644 --- a/src/VISU_I/VISU_Prs3d_i.cc +++ b/src/VISU_I/VISU_Prs3d_i.cc @@ -99,7 +99,10 @@ VISU::Prs3d_i::~Prs3d_i() { if(MYDEBUG) MESSAGE("Prs3d_i::~Prs3d_i - this = "<Destroy(); + // VSR (27/08/09): Next line is commented, because it causes SIGSEGV + // : Actually not needed, 'cause GenericObjPtr watches to the stored pointer and + // : calls Destroy() in its destructor. + //if(myResult) myResult->Destroy(); } -- 2.39.2