Skip to content
Snippets Groups Projects
Commit 1bec1195 authored by David Gobbi's avatar David Gobbi
Browse files

Mark reference cycle for vtkResampleWithDataSet

ReportReferences must be called on all members of a container
algorithm that share connections with the containr algorithm
via the pipeline.  This allows the garbage collector to break
the reference cycles.
parent a1a07c4c
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@
#include "vtkCompositeDataSetRange.h"
#include "vtkDataObject.h"
#include "vtkDataSet.h"
#include "vtkGarbageCollector.h"
#include "vtkIdList.h"
#include "vtkInformation.h"
#include "vtkInformationVector.h"
......@@ -419,4 +420,12 @@ int vtkResampleWithDataSet::RequestData(vtkInformation* vtkNotUsed(request),
return 1;
}
//------------------------------------------------------------------------------
void vtkResampleWithDataSet::ReportReferences(vtkGarbageCollector* collector)
{
this->Superclass::ReportReferences(collector);
// A reference cycle with Prober exists via the pipeline
vtkGarbageCollectorReport(collector, this->Prober, "Prober");
}
VTK_ABI_NAMESPACE_END
......@@ -194,6 +194,9 @@ protected:
int FillInputPortInformation(int, vtkInformation*) override;
int FillOutputPortInformation(int, vtkInformation*) override;
// Garbage collection method
void ReportReferences(vtkGarbageCollector*) override;
/**
* Get the name of the valid-points mask array.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment