From: vsr Date: Thu, 27 Aug 2009 16:43:54 +0000 (+0000) Subject: Issue 0020458: [CEA 351] SIGSEGV on SALOME closing after Delete of VISU entry X-Git-Tag: V5_1_main_20090901~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3569dc745be54c11a76413217879820abcf9a905;p=modules%2Fvisu.git Issue 0020458: [CEA 351] SIGSEGV on SALOME closing after Delete of VISU entry --- diff --git a/src/VISU_I/VISU_Prs3d_i.cc b/src/VISU_I/VISU_Prs3d_i.cc index fdc4ef08..620cf98d 100644 --- a/src/VISU_I/VISU_Prs3d_i.cc +++ b/src/VISU_I/VISU_Prs3d_i.cc @@ -100,7 +100,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(); }