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

Do not manually free materials for shapes #215

Merged
merged 2 commits into from
Oct 5, 2023
Merged

Do not manually free materials for shapes #215

merged 2 commits into from
Oct 5, 2023

Conversation

tgolsson
Copy link
Member

@tgolsson tgolsson commented Sep 27, 2023

Fixes #180

@rlidwka Correct analysis indeed, Physx internally decrements the ref count so no need for our wrappers to do so -- that leads to decrementing the ref-count twice. Do you have a bigger context where you'd be able to try this and ensure it now works?

@rlidwka
Copy link
Contributor

rlidwka commented Sep 29, 2023

Do you have a bigger context where you'd be able to try this and ensure it now works?

I've tried it, and I'm pretty sure this solution works.

@tgolsson
Copy link
Member Author

Thanks! Will try to get a release done next week.

@tgolsson tgolsson requested a review from bpaberg October 4, 2023 14:26
Copy link
Member

@bpaberg bpaberg left a comment

Choose a reason for hiding this comment

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

Looks good to me but are the trait implementations needed in this test?

@tgolsson tgolsson removed the request for review from blunzn October 5, 2023 12:01
@mergify mergify bot merged commit 1ef3b01 into main Oct 5, 2023
10 checks passed
@mergify mergify bot deleted the ts/bug-180 branch October 5, 2023 12:02
tgolsson added a commit that referenced this pull request Oct 11, 2023
tgolsson added a commit that referenced this pull request Oct 11, 2023
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.

Segfault (double free) on drop(PxShape)
3 participants