From 10907888352dccf7c07e97aea88cae32fa2c9d0e Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 31 Jul 2013 10:28:55 +0000 Subject: [PATCH] 0022261: EDF 2698 SMESH: Memory leak when displaying 2D quadratic elements as arcs Remove a leak of vtkTransformFilter + aGrid->Register(0); + aTransformFilter->Delete(); --- src/VTKViewer/VTKViewer_ArcBuilder.cxx | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.2