From 632d35e0d461f305b0ef94cc85a75b3ce871fb4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 25 Jul 2022 17:40:22 +0200 Subject: [PATCH] Wayland: Fix leaks of pointer related objects (cherry picked from commit 03af6b3d4c2dbd763fbf32927c44fe6fd517991c) --- src/wl_window.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wl_window.c b/src/wl_window.c index a7b48441..6d490843 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -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);