Simply changing one line from<br>vtkSmartPointer&lt;vtkPolyData&gt; poly = vtkSmartPointer&lt;vtkPolyData&gt;::New();<br>to<br>vtkPolyData* poly = vtkPolyData::New();<br>(and of course forgetting to delete it) generates the following messages:<br>
<br>vtkDebugLeaks has detected LEAKS!<br>Class &quot;vtkCellData&quot; has 1 instance still around.<br>Class &quot;vtkInformationVector&quot; has 3 instances still around.<br>
Class &quot;vtkPointData&quot; has 1 instance still around.<br>Class &quot;vtkTrivialProducer&quot; has 1 instance still around.<br>Class &quot;vtkPoints&quot; has 1 instance still around.<br>Class &quot;vtkInformation&quot; has 6 instances still around.<br>

Class &quot;vtkPolyData&quot; has 1 instance still around.<br>Class &quot;vtkAlgorithmOutput&quot; has 1 instance still around.<br>Class &quot;vtkInformationIntegerValue&quot; has 10 instances still around.<br>Class &quot;vtkCellArray&quot; has 2 instances still around.<br>

Class &quot;vtkFloatArray&quot; has 1 instance still around.<br>Class &quot;vtkInformationStringValue&quot; has 1 instance still around.<br>Class &quot;vtkInformationExecutivePortVectorValue&quot; has 1 instance still around.<br>

Class &quot;vtkIdTypeArray&quot; has 2 instances still around.<br>Class &quot;vtkFieldData&quot; has 1 instance still around.<br>Class &quot;vtkInformationDoubleVectorValue&quot; has 2 instances still around.<br>Class &quot;vtkUnsignedCharArray&quot; has 1 instance still around.<br>

Class &quot;vtkStreamingDemandDrivenPipeline&quot; has 1 instance still around.<br>Class &quot;vtkInformationExecutivePortValue&quot; has 1 instance still around.<br><br>It&#39;s pretty tough to figure out what was actually the root of the problem by looking at that list. Is there a way to say &quot;show only parents&quot; or something like that, so that only the things highest up in the hierarchy are shown? That is, deleting that polydata object in turn deletes the rest of those &quot;under the hood&quot; things automatically, so I don&#39;t really need to be notified about those.<br>
<br>Is anything like this possible?<br><br clear="all">Thanks,<br><br>David<br>