Commit 9e3aa529 authored by loring's avatar loring
Browse files

memory leak

Don't hold 2 refs to the output of CondenseDatasetFilter



git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23178 18c085ea-50e0-402c-830e-de6fd14e8384
parent 355e981d
......@@ -152,6 +152,9 @@ avtCondenseDatasetFilter::~avtCondenseDatasetFilter()
// Changed function to be thread safe. I remove the class variable rpfPD
// and rpfUG. Now I allocate the needed VTK object during execution.
//
// Burlen Loring, Mon Apr 14 15:56:19 PDT 2014
// Don't take two references to the output
//
// ****************************************************************************
vtkDataSet *
......@@ -343,7 +346,11 @@ avtCondenseDatasetFilter::ExecuteData(vtkDataSet *in_ds, int, std::string)
}
if (out_ds != in_ds)
{
ManageMemory(out_ds);
out_ds->Delete();
}
if (needToDelete)
no_vars->Delete();
......
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