Commit 4dce13be authored by Will Schroeder's avatar Will Schroeder Committed by David E. DeMarle

Fixed memory leak

parent d9f1bd73
......@@ -365,8 +365,11 @@ int vtkAdaptiveSubdivisionFilter::RequestData(
newPointData->Delete();
output->SetPolys(inTris);
inTris->Delete();
newTris->Delete();
output->GetCellData()->ShallowCopy(inCellData);
inCellData->Delete();
inPointData->Delete();
newCellData->Delete();
return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment