Skip to content

Fix memory leak for Python reference parameters

David Gobbi requested to merge dgobbi/vtk:17765-python-ref-leak into master

The docs for PyVTKReference say that PyVTKReference_SetValue(self, o) steals the reference for 'o', but that is not how it was implemented. This commit fixes the implementation so that it matches the docs. This eliminates a reported memory leak.

Closes #17765 (closed)

Edited by David Gobbi

Merge request reports