]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug GVIEW10590
authorapo <apo@opencascade.com>
Fri, 18 Nov 2005 08:06:43 +0000 (08:06 +0000)
committerapo <apo@opencascade.com>
Fri, 18 Nov 2005 08:06:43 +0000 (08:06 +0000)
   memory leak while creating/deleting gauss point presentation

src/OBJECT/VISU_GaussPtsAct.cxx

index 99b2585ad06141c400b64e115c06f238d356532b..199be4ba0008115c2122737844ccfd80d2283016 100644 (file)
@@ -980,10 +980,12 @@ VISU_GaussPtsAct1
 
   if(VISU_GaussPointsPL* aPipeLine = CreatePipeLine(GetGaussPointsPL())){
     myInsideDeviceActor->SetPipeLine(aPipeLine);
+    aPipeLine->Delete();
   }
 
   if(VISU_GaussPointsPL* aPipeLine = CreatePipeLine(GetGaussPointsPL())){
     myOutsideDeviceActor->SetPipeLine(aPipeLine);
+    aPipeLine->Delete();
 
     myOutsideDeviceActor->GetMapper()->ScalarVisibilityOff();
 
@@ -1146,6 +1148,7 @@ VISU_GaussPtsAct2
   if(VISU_GaussPointsPL* aPipeLine = CreatePipeLine(GetGaussPointsPL())){
     myDeviceActor->SetPipeLine(aPipeLine);
     myCurrentPL = aPipeLine;
+    aPipeLine->Delete();
   }
 }