]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Issue 0020458: [CEA 351] SIGSEGV on SALOME closing after Delete of VISU entry
authorvsr <vsr@opencascade.com>
Thu, 27 Aug 2009 16:49:08 +0000 (16:49 +0000)
committervsr <vsr@opencascade.com>
Thu, 27 Aug 2009 16:49:08 +0000 (16:49 +0000)
src/VISU_I/VISU_Prs3d_i.cc

index 17710dacca0c18ca589999ecf005455314296898..4fe4341071007b3eb55433c8d84d7c92b951d492 100644 (file)
@@ -99,7 +99,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(); 
 }