[vtkusers] Memory leak in VTK-Python module

Charl P. Botha cpbotha at cpbotha.net
Wed Jul 25 07:41:11 EDT 2007


On 7/10/07, Pierre Barbier de Reuille <pbarbier at ucalgary.ca> wrote:
> I am using VTK from Python, and I noticed that I need to explicitly
> unregister the objects once for Python to actually free it. One thing I
> didn't find out though is if I needed to explicitly handle the memory of
> my VTK objects from Python or if the object should be implicitly kept
> alive as long as I hold a reference on it.

You really should not have to worry about this.  As soon as all
bindings have been deleted, the objects will be destroyed.  You also
should not need to explicitly unregister any objects.



More information about the vtkusers mailing list