From: eap Date: Wed, 24 Jul 2013 14:50:13 +0000 (+0000) Subject: 22261: EDF 2698 SMESH: Memory leak when displaying 2D quadratic elements as arcs X-Git-Tag: BR_hydro_v_0_3_1~99 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5ce82e58ac525f647710ce00cc70ff67bfe6a942;p=modules%2Fgui.git 22261: EDF 2698 SMESH: Memory leak when displaying 2D quadratic elements as arcs + if ( newFaceLocations ) newFaceLocations->Delete(); + if ( newFaces ) newFaces->Delete(); --- 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();