]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
21948: EDF SMESH : Memory is not freed when deleting a mesh
authoreap <eap@opencascade.com>
Fri, 14 Dec 2012 13:09:07 +0000 (13:09 +0000)
committereap <eap@opencascade.com>
Fri, 14 Dec 2012 13:09:07 +0000 (13:09 +0000)
fix leaks of cellLinks

class SMDS_EXPORT SMDS_CellLinks: public vtkCellLinks
{
public:
+  void ResizeForPoint(vtkIdType vtkID);

src/SMDS/SMDS_UnstructuredGrid.hxx

index 774c54e2780ce100982b60448ff76e38da556eb4..4cd1dae371aefb52bae9e7af4b2397d098548efd 100644 (file)
@@ -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();