mirror of
https://github.com/glfw/glfw.git
synced 2025-04-08 06:43:14 +00:00
Wayland: Fix leaks of pointer related objects
(cherry picked from commit 03af6b3d4c
)
This commit is contained in:
parent
5189d52ae3
commit
632d35e0d4
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue