]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
22261: EDF 2698 SMESH: Memory leak when displaying 2D quadratic elements as arcs
authoreap <eap@opencascade.com>
Wed, 24 Jul 2013 14:50:13 +0000 (14:50 +0000)
committereap <eap@opencascade.com>
Wed, 24 Jul 2013 14:50:13 +0000 (14:50 +0000)
+      if ( newFaceLocations ) newFaceLocations->Delete();
+      if ( newFaces ) newFaces->Delete();

src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.cxx

index d1fbd15f2e7996b28f4189abbb67edfae8b657b0..b238f5e1994f00ef24a39cb050d6a139af937baa 100755 (executable)
@@ -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();