]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0022261: EDF 2698 SMESH: Memory leak when displaying 2D quadratic elements as arcs
authoreap <eap@opencascade.com>
Wed, 31 Jul 2013 10:28:55 +0000 (10:28 +0000)
committereap <eap@opencascade.com>
Wed, 31 Jul 2013 10:28:55 +0000 (10:28 +0000)
Remove a leak of vtkTransformFilter

+  aGrid->Register(0);
+  aTransformFilter->Delete();

src/VTKViewer/VTKViewer_ArcBuilder.cxx

index af1ca44368ccf0052f991f191feaeadb50bd997b..4cc62a72e1654fd87d13275b806213937b0465f1 100644 (file)
@@ -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;
 }