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

Communicate through swig that PathPointSet::insert takes ownership #3276

Merged
merged 3 commits into from
Aug 11, 2022

Conversation

aymanhab
Copy link
Member

@aymanhab aymanhab commented Aug 9, 2022

Fixes issue #3274

Brief summary of changes

Bindings for Python and Java now mark the passed in object to PathPointSet::insert as owned by the Set so it doesn't get double deleted or garbage collected early from scripting environment

Testing I've completed

Looking for feedback on...

CHANGELOG.md (choose one)

  • updated.

This change is Reviewable

Beef up the comment explaining the change
Copy link
Member

@carmichaelong carmichaelong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I also tested this artifact with the test code in MATLAB that was crashing and could not cause the same crash (after removing the additional markAdopted() lines in the MATLAB code)

@carmichaelong
Copy link
Member

Oh @aymanhab actually one thing: maybe add something to the changelog?

Update changelog
@aymanhab
Copy link
Member Author

Thanks @carmichaelong 👍 Updated changelog, and will merge since no need to rebuild. Thank you

@aymanhab aymanhab merged commit 156763a into master Aug 11, 2022
@aymanhab aymanhab deleted the fix_setinsert_bindnig branch August 11, 2022 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants