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

Fix owner leak in destroy_shape() #344

Merged
merged 1 commit into from
Feb 21, 2025
Merged

Conversation

Chubercik
Copy link
Contributor

Ensures that lingering owner references are cleared after a shape is destroyed by adding a call to clear() on the owners HashMap.

Fixes #266.

Ensures that lingering owner references are cleared after a shape is destroyed by adding a call to `clear()` on the `owners` HashMap.
@Ughuuu
Copy link
Contributor

Ughuuu commented Feb 20, 2025

Odd that after a shape is destroyed it is still used?

@Chubercik
Copy link
Contributor Author

¯\_(ツ)_/¯

Forgot to mention, tested the PR's build on my project and the issue is gone so I assume that was it.

@Ughuuu Ughuuu merged commit fbbb65a into appsinacup:main Feb 21, 2025
82 checks passed
@Ughuuu
Copy link
Contributor

Ughuuu commented Feb 21, 2025

Sorry for delay, got busy with other stuff. Merged it now.

@Chubercik
Copy link
Contributor Author

No worries, thanks!

@Chubercik Chubercik deleted the fix_leaks branch February 21, 2025 21:17
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.

"RapierShapeBase leaked X owners" when starting the game after upgrading to v0.8.5
2 participants