LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.67k stars 629 forks source link

Fix memory leak in Callback.free #927

Closed kb-1000 closed 9 months ago

kb-1000 commented 9 months ago

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

Spasi commented 9 months ago

Thank you @kb-1000!