]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix on Bug GVIEW10305
authorapo <apo@opencascade.com>
Mon, 17 Oct 2005 06:06:24 +0000 (06:06 +0000)
committerapo <apo@opencascade.com>
Mon, 17 Oct 2005 06:06:24 +0000 (06:06 +0000)
 Sigsegv after closing document
Now, myRemoveActorsFromRendererSignal is called before VISU::Prs3d destruction

src/VISU_I/VISU_Prs3d_i.cc

index 0fd66505f533e812161f5340999ca882664ef215..ba9ba4469ec1d4dcd006a60e0c70caaf3fb8f1f4 100644 (file)
@@ -93,6 +93,7 @@ VISU::Prs3d_i
 ::~Prs3d_i() 
 {
   if(MYDEBUG) MESSAGE("Prs3d_i::~Prs3d_i - this = "<<this);
+  myRemoveActorsFromRendererSignal();
   myPipeLine->Delete();
   myResult->Destroy();
 }
@@ -167,7 +168,7 @@ VISU::Prs3d_i
 ::RemoveFromStudy() 
 {
   myRemoveActorsFromRendererSignal();
-  myActorCollection->RemoveAllItems();
+  Destroy();
 }