Commit 50f31694 authored by Ken Martin's avatar Ken Martin Committed by David E. DeMarle

memory leak in ExtractHierarchicalBins

The BinningFilter ivar may also  be in a reference
loop as the input to this filter. Have to report it.
parent 4dce13be
......@@ -19,6 +19,7 @@
#include "vtkPoints.h"
#include "vtkDataArray.h"
#include "vtkHierarchicalBinningFilter.h"
#include "vtkGarbageCollector.h"
......@@ -54,6 +55,13 @@ vtkExtractHierarchicalBins::~vtkExtractHierarchicalBins()
void vtkExtractHierarchicalBins::ReportReferences(vtkGarbageCollector* collector)
// Report references held by this object that may be in a loop.
vtkGarbageCollectorReport(collector, this->BinningFilter, "Binning Filter");
// Traverse all the input points and extract points that are contained within
// and implicit function.
......@@ -104,6 +104,10 @@ protected:
int Bin;
vtkHierarchicalBinningFilter *BinningFilter;
// for the binning filter
void ReportReferences(vtkGarbageCollector*) VTK_OVERRIDE;
// All derived classes must implement this method. Note that a side effect of
// the class is to populate the PointMap. Zero is returned if there is a failure.
virtual int FilterPoints(vtkPointSet *input);
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