Wayland: Fix leaks of pointer related objects

(cherry picked from commit 03af6b3d4c)
This commit is contained in:
Camilla Löwy 2022-07-25 17:40:22 +02:00 committed by Camilla Löwy
parent 5189d52ae3
commit 632d35e0d4

View File

@ -1913,6 +1913,12 @@ void _glfwPlatformDestroyWindow(_GLFWwindow* window)
if (window->wl.idleInhibitor) if (window->wl.idleInhibitor)
zwp_idle_inhibitor_v1_destroy(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) if (window->context.destroy)
window->context.destroy(window); window->context.destroy(window);