mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-22 18:28:52 -05:00
Wayland: Fix leaks of pointer related objects
This commit is contained in:
parent
09ebf3f0bf
commit
03af6b3d4c
|
@ -1854,6 +1854,12 @@ void _glfwDestroyWindowWayland(_GLFWwindow* window)
|
|||
if (window->wl.idleInhibitor)
|
||||
zwp_idle_inhibitor_v1_destroy(window->wl.idleInhibitor);
|
||||
|
||||
if (window->wl.relativePointer)
|
||||
zwp_relative_pointer_v1_destroy(window->wl.relativePointer);
|
||||
|
||||
if (window->wl.lockedPointer)
|
||||
zwp_locked_pointer_v1_destroy(window->wl.lockedPointer);
|
||||
|
||||
if (window->context.destroy)
|
||||
window->context.destroy(window);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user