VTK Delete() and data deletion

c++, vtk

Solution

vtkObjectBase Delete() will call UnRegisterInternal. If the classes ReferenceCount is less than or equal to 1 it will call delete on the class.

Problem

I was browsing through the VTK 5.4.2 code, and can't seem to understand how does the Delete() function works. I mean, the Delete() function is in vtkObjectBase and is virtual, but, through what chain of commands is the destructor of the vtkDoubleArray class (for example) executed? best regards, mightydodol

Original source