fix leaks of cellLinks
void SMDS_MeshNode::init()
{
- if (myVtkID >= cellLinks->GetLinksSize())
- cellLinks->ResizeL(myVtkID+SMDS_Mesh::chunkSize);
+ cellLinks->ResizeForPoint( myVtkID );
points->InsertPoint(myVtkID, x, y, z);
SMDS_CellLinks *cellLinks = dynamic_cast<SMDS_CellLinks*>(grid->GetCellLinks());
assert(cellLinks);
- if (myVtkID >= cellLinks->GetLinksSize())
- cellLinks->ResizeL(myVtkID+SMDS_Mesh::chunkSize);
+ cellLinks->ResizeForPoint( myVtkID );
}
SMDS_MeshNode::~SMDS_MeshNode()