From 63533d6d9909672a9b6a61b556052e6fc33c0dfb Mon Sep 17 00:00:00 2001 From: Zack Galbreath <zack.galbreath@kitware.com> Date: Mon, 15 Apr 2013 12:59:50 -0400 Subject: [PATCH] minor cleanup remove debug message, plug memory leak Change-Id: If9fc08f0e046bcf89c0d14efc377b12d1a278605 --- Filters/StatisticsGnuR/vtkRAdapter.cxx | 1 - Filters/StatisticsGnuR/vtkRCalculatorFilter.cxx | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Filters/StatisticsGnuR/vtkRAdapter.cxx b/Filters/StatisticsGnuR/vtkRAdapter.cxx index 245fb703278..4cd55104c27 100644 --- a/Filters/StatisticsGnuR/vtkRAdapter.cxx +++ b/Filters/StatisticsGnuR/vtkRAdapter.cxx @@ -731,7 +731,6 @@ vtkTree* vtkRAdapter::RToVTKTree(SEXP variable) weights->SetValue(0, 0.0);//root edge weight = 0.0 for (int i = 0; i < nedge; i++) { - cout << "(debug) edge weight #" << i << ": " << edge_length[i] << endl; weights->SetValue(i+1, edge_length[i]); } builder->GetEdgeData()->AddArray(weights.GetPointer()); diff --git a/Filters/StatisticsGnuR/vtkRCalculatorFilter.cxx b/Filters/StatisticsGnuR/vtkRCalculatorFilter.cxx index cd805b90f3e..3448db36a7a 100644 --- a/Filters/StatisticsGnuR/vtkRCalculatorFilter.cxx +++ b/Filters/StatisticsGnuR/vtkRCalculatorFilter.cxx @@ -341,6 +341,7 @@ int vtkRCalculatorFilter::RequestData(vtkInformation *vtkNotUsed(request), outComposite->SetDataSet(iter, outComponent); outComponent->Delete(); } + iter->Delete(); } // For now: use the first input information for timing -- GitLab