Wayland: Fix libwayland-client not unloaded

This commit is contained in:
Camilla Löwy
2026-02-05 22:30:20 +01:00
parent a3095e1aa5
commit b579ea6792
2 changed files with 7 additions and 0 deletions

View File

@@ -149,6 +149,7 @@ information on what to include when reporting a bug.
- [Wayland] Bugfix: Confining or disabling the cursor could segfault on
compositors without `pointer-constraints-unstable-v1`
- [Wayland] Bugfix: Key repeat did not function on very old compositors
- [Wayland] Bugfix: The `libwayland-client` library was not unloaded at termination
- [X11] Bugfix: Running without a WM could trigger an assert (#2593,#2601,#2631)
- [X11] Bugfix: Occasional crash when an idle display awakes (#2766)
- [X11] Bugfix: Prevent BadWindow when creating small windows with a content scale

View File

@@ -1014,6 +1014,12 @@ void _glfwTerminateWayland(void)
_glfw.wl.cursor.handle = NULL;
}
if (_glfw.wl.client.handle)
{
_glfwPlatformFreeModule(_glfw.wl.client.handle);
_glfw.wl.client.handle = NULL;
}
_glfw_free(_glfw.wl.clipboardString);
}