From: eap Date: Fri, 14 Dec 2012 13:09:07 +0000 (+0000) Subject: 21948: EDF SMESH : Memory is not freed when deleting a mesh X-Git-Tag: pluginMGCleaner~268 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a29e12d8f91212053db6173174ffcde2c6582356;p=modules%2Fsmesh.git 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); --- 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();