From 0967079312ea219340d2e4a8998689840e360e79 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 18 Nov 2005 08:06:43 +0000 Subject: [PATCH] Fix for Bug GVIEW10590 memory leak while creating/deleting gauss point presentation --- src/OBJECT/VISU_GaussPtsAct.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/OBJECT/VISU_GaussPtsAct.cxx b/src/OBJECT/VISU_GaussPtsAct.cxx index 99b2585a..199be4ba 100644 --- a/src/OBJECT/VISU_GaussPtsAct.cxx +++ b/src/OBJECT/VISU_GaussPtsAct.cxx @@ -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(); } } -- 2.39.2