From 5ce82e58ac525f647710ce00cc70ff67bfe6a942 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 24 Jul 2013 14:50:13 +0000 Subject: [PATCH] 22261: EDF 2698 SMESH: Memory leak when displaying 2D quadratic elements as arcs + if ( newFaceLocations ) newFaceLocations->Delete(); + if ( newFaces ) newFaces->Delete(); --- src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.cxx b/src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.cxx index d1fbd15f2..b238f5e19 100755 --- a/src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.cxx +++ b/src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.cxx @@ -305,6 +305,8 @@ int VTKViewer_ExtractUnstructuredGrid::RequestData(vtkInformation *vtkNotUsed(re aCellTypesArray->Delete(); aConnectivity->Delete(); anIdList->Delete(); + if ( newFaceLocations ) newFaceLocations->Delete(); + if ( newFaces ) newFaces->Delete(); } }else{ vtkIdList *anIdList = vtkIdList::New(); -- 2.39.2