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 leaks of Shape2D and Shape3D #68982

Closed

Conversation

adamscott
Copy link
Member

@adamscott adamscott commented Nov 21, 2022

Moves finalize_physics() after unregister_server_types() in main.cpp which assures that GDScript instances will be disposed of before removing physics servers.

Fixes #68973

Will need testing as I don't know if there's side effects delaying the clearing of physics servers after modules and other server types.

@rburing
Copy link
Member

rburing commented Nov 22, 2022

This change will break unloading physics server extensions (the comment above finalize_physics() explains why it is in that place).

@Chaosus Chaosus added this to the 4.0 milestone Nov 22, 2022
@adamscott adamscott marked this pull request as draft November 30, 2022 19:20
@adamscott
Copy link
Member Author

Superseded by #69506

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shape2D and Shape3D RID allocations can leak since #67714
5 participants