Skip to content
Snippets Groups Projects
Commit eba59f74 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MeL/Vtk] Avoid memory leak of node coordinates.

parent 7b05e2d6
No related branches found
No related tags found
No related merge requests found
...@@ -79,8 +79,8 @@ int VtkMappedMeshSource::RequestData(vtkInformation* /*request*/, ...@@ -79,8 +79,8 @@ int VtkMappedMeshSource::RequestData(vtkInformation* /*request*/,
// Points // Points
this->Points->Reset(); this->Points->Reset();
VtkMeshNodalCoordinatesTemplate<double>* nodeCoords = vtkSmartPointer<VtkMeshNodalCoordinatesTemplate<double>> nodeCoords =
VtkMeshNodalCoordinatesTemplate<double>::New(); vtkSmartPointer<VtkMeshNodalCoordinatesTemplate<double>>::New();
nodeCoords->SetNodes(_mesh->getNodes()); nodeCoords->SetNodes(_mesh->getNodes());
this->Points->SetData(nodeCoords); this->Points->SetData(nodeCoords);
output->SetPoints(this->Points.GetPointer()); output->SetPoints(this->Points.GetPointer());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment