From: eap Date: Wed, 31 Jul 2013 10:28:55 +0000 (+0000) Subject: 0022261: EDF 2698 SMESH: Memory leak when displaying 2D quadratic elements as arcs X-Git-Tag: BR_hydro_v_0_3_1~94 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=10907888352dccf7c07e97aea88cae32fa2c9d0e;p=modules%2Fgui.git 0022261: EDF 2698 SMESH: Memory leak when displaying 2D quadratic elements as arcs Remove a leak of vtkTransformFilter + aGrid->Register(0); + aTransformFilter->Delete(); --- diff --git a/src/VTKViewer/VTKViewer_ArcBuilder.cxx b/src/VTKViewer/VTKViewer_ArcBuilder.cxx index af1ca4436..4cc62a72e 100644 --- a/src/VTKViewer/VTKViewer_ArcBuilder.cxx +++ b/src/VTKViewer/VTKViewer_ArcBuilder.cxx @@ -400,6 +400,8 @@ VTKViewer_ArcBuilder::TransformGrid(vtkUnstructuredGrid* theGrid, aTransformFilter->SetInputData(theGrid); aTransformFilter->Update(); vtkUnstructuredGrid * aGrid = aTransformFilter->GetUnstructuredGridOutput(); + aGrid->Register(0); + aTransformFilter->Delete(); return aGrid; }