Commit 58598988 authored by George Zagaris's avatar George Zagaris
Browse files

BUGFIX: Fixed memory leaks

Called Delete() on the vtkMPIController after
Finalize() and inserted other Delete() as approriate
so that there are no memory leaks.
parent 174cc508
......@@ -118,6 +118,7 @@ int main( int argc, char **argv )
transferFilter->Delete();
Controller->Finalize();
Controller->Delete();
return 0;
}
......@@ -243,5 +244,6 @@ vtkUniformGrid* GetGrid( double *origin, double *spacing, int *ndim )
} // END for all cells
grd->GetCellData()->AddArray(xyz);
xyz->Delete();
return grd;
}
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