From a29e12d8f91212053db6173174ffcde2c6582356 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 14 Dec 2012 13:09:07 +0000 Subject: [PATCH] 21948: EDF SMESH : Memory is not freed when deleting a mesh fix leaks of cellLinks class SMDS_EXPORT SMDS_CellLinks: public vtkCellLinks { public: + void ResizeForPoint(vtkIdType vtkID); --- src/SMDS/SMDS_UnstructuredGrid.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SMDS/SMDS_UnstructuredGrid.hxx b/src/SMDS/SMDS_UnstructuredGrid.hxx index 774c54e27..4cd1dae37 100644 --- a/src/SMDS/SMDS_UnstructuredGrid.hxx +++ b/src/SMDS/SMDS_UnstructuredGrid.hxx @@ -54,8 +54,7 @@ class SMDS_MeshVolume; class SMDS_EXPORT SMDS_CellLinks: public vtkCellLinks { public: - vtkCellLinks::Link* ResizeL(vtkIdType sz); - vtkIdType GetLinksSize(); + void ResizeForPoint(vtkIdType vtkID); static SMDS_CellLinks* New(); protected: SMDS_CellLinks(); @@ -108,6 +107,7 @@ public: static SMDS_UnstructuredGrid* New(); SMDS_Mesh *_mesh; + protected: SMDS_UnstructuredGrid(); ~SMDS_UnstructuredGrid(); -- 2.39.2