mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Wayland: Fix leaks of pointer related objects
(cherry picked from commit 03af6b3d4c
)
This commit is contained in:
parent
5189d52ae3
commit
632d35e0d4
@ -1913,6 +1913,12 @@ void _glfwPlatformDestroyWindow(_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