Salome HOME
Issue 0020458: [CEA 351] SIGSEGV on SALOME closing after Delete of VISU entry
authorvsr <vsr@opencascade.com>
Thu, 27 Aug 2009 16:43:54 +0000 (16:43 +0000)
committervsr <vsr@opencascade.com>
Thu, 27 Aug 2009 16:43:54 +0000 (16:43 +0000)
src/VISU_I/VISU_Prs3d_i.cc

index fdc4ef087cc53cdcdbf472508ca33ab07f5bd99e..620cf98d36caafbc3cd07d9fbc29fcc43c832aab 100644 (file)
@@ -100,7 +100,10 @@ VISU::Prs3d_i::~Prs3d_i()
 {
   if(MYDEBUG) MESSAGE("Prs3d_i::~Prs3d_i - this = "<<this);
   ProcessVoidEvent(new TInvokeSignalEvent(myRemoveActorsFromRendererSignal));
-  if(myResult) myResult->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(); 
 }