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 memory leak in Callback.free #927

Merged
merged 1 commit into from
Sep 30, 2023
Merged

Fix memory leak in Callback.free #927

merged 1 commit into from
Sep 30, 2023

Conversation

kb-1000
Copy link
Contributor

@kb-1000 kb-1000 commented Sep 29, 2023

CallbackRegistry.remove appears to be unused currently, meaning creating and freeing callbacks on platforms that don't use the no-op registry leaks memory.

When using the CHM closure registry, the Java-side wrapper object was
never removed from the map.
@Spasi Spasi merged commit 2c9103d into LWJGL:master Sep 30, 2023
@Spasi
Copy link
Member

Spasi commented Sep 30, 2023

Thank you @kb-1000!

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.

2 participants