Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leaks when returning vtkCollection objects to Python as return value #2718

slicerbot opened this issue Mar 12, 2020 · 1 comment


Copy link

@slicerbot slicerbot commented Mar 12, 2020

This issue was created automatically from an original Mantis Issue. Further discussion may take place here.


This comment has been minimized.

Copy link

@lassoan lassoan commented Mar 20, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.