Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Memory leaks when returning vtkCollection objects to Python as return value #2718
VTK's Python wrapping now supports factory methods (the Python wrapper unregisters the new object so that only the Python variable keeps a reference to it), but adding the flag to the existing method would cause hard-to-catch errors. Probably the best would be to completely change the method's signature for a few years (make it take a collection as input as suggested in the issue) and after that the method could return with the new improved behavior.