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);
This commit is contained in:
eap 2012-12-14 13:09:07 +00:00
parent 6bb8dd97b8
commit a29e12d8f9

View File

@ -54,8 +54,7 @@ class SMDS_MeshVolume;
class SMDS_EXPORT SMDS_CellLinks: public vtkCellLinks class SMDS_EXPORT SMDS_CellLinks: public vtkCellLinks
{ {
public: public:
vtkCellLinks::Link* ResizeL(vtkIdType sz); void ResizeForPoint(vtkIdType vtkID);
vtkIdType GetLinksSize();
static SMDS_CellLinks* New(); static SMDS_CellLinks* New();
protected: protected:
SMDS_CellLinks(); SMDS_CellLinks();
@ -108,6 +107,7 @@ public:
static SMDS_UnstructuredGrid* New(); static SMDS_UnstructuredGrid* New();
SMDS_Mesh *_mesh; SMDS_Mesh *_mesh;
protected: protected:
SMDS_UnstructuredGrid(); SMDS_UnstructuredGrid();
~SMDS_UnstructuredGrid(); ~SMDS_UnstructuredGrid();