Skip to content
Snippets Groups Projects
Commit ddc42cf7 authored by Sean McBride's avatar Sean McBride
Browse files

Fixed memory leaks in error paths

parent a919d1fb
No related branches found
No related tags found
No related merge requests found
......@@ -205,11 +205,13 @@ int vtkPointDataToCellData::RequestData(
if (!input->GetPointData()->GetScalars())
{
vtkDebugMacro(<<"No input scalars!");
delete [] weights;
return 1;
}
if (input->GetPointData()->GetScalars()->GetNumberOfComponents() != 1)
{
vtkDebugMacro(<<"Input scalars have more than one component! Cannot categorize!");
delete [] weights;
return 1;
}
}
......
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