mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 12:30:32 +05:00
21948: EDF SMESH : Memory is not freed when deleting a mesh
fix leaks of cellLinks void SMDS_MeshNode::init() { - if (myVtkID >= cellLinks->GetLinksSize()) - cellLinks->ResizeL(myVtkID+SMDS_Mesh::chunkSize); + cellLinks->ResizeForPoint( myVtkID );
This commit is contained in:
parent
585362053b
commit
6bb8dd97b8
@ -71,8 +71,7 @@ void SMDS_MeshNode::init(int id, int meshId, int shapeId, double x, double y, do
|
|||||||
points->InsertPoint(myVtkID, x, y, z);
|
points->InsertPoint(myVtkID, x, y, z);
|
||||||
SMDS_CellLinks *cellLinks = dynamic_cast<SMDS_CellLinks*>(grid->GetCellLinks());
|
SMDS_CellLinks *cellLinks = dynamic_cast<SMDS_CellLinks*>(grid->GetCellLinks());
|
||||||
assert(cellLinks);
|
assert(cellLinks);
|
||||||
if (myVtkID >= cellLinks->GetLinksSize())
|
cellLinks->ResizeForPoint( myVtkID );
|
||||||
cellLinks->ResizeL(myVtkID+SMDS_Mesh::chunkSize);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SMDS_MeshNode::~SMDS_MeshNode()
|
SMDS_MeshNode::~SMDS_MeshNode()
|
||||||
|
Loading…
Reference in New Issue
Block a user