From: apo Date: Fri, 18 Nov 2005 08:06:43 +0000 (+0000) Subject: Fix for Bug GVIEW10590 X-Git-Tag: BR-D5-38-2003_D2005-24-11~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0967079312ea219340d2e4a8998689840e360e79;p=modules%2Fvisu.git Fix for Bug GVIEW10590 memory leak while creating/deleting gauss point presentation --- 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(); } }