X11: Fix libXext not unloaded at termination

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

View File

@@ -155,6 +155,7 @@ information on what to include when reporting a bug.
less than 1 (#2754) less than 1 (#2754)
- [X11] Bugfix: Clamp width and height to >= 1 to prevent BadValue error and app exit - [X11] Bugfix: Clamp width and height to >= 1 to prevent BadValue error and app exit
- [X11] Bugfix: Floating windows silently became non-floating when hidden (#2276) - [X11] Bugfix: Floating windows silently became non-floating when hidden (#2276)
- [X11] Bugfix: The `libXext` library was not unloaded at termination
- [Linux] Bugfix: The header for `ioctl` was only implicitly included (#2778) - [Linux] Bugfix: The header for `ioctl` was only implicitly included (#2778)
- [Null] Added Vulkan 'window' surface creation via `VK_EXT_headless_surface` - [Null] Added Vulkan 'window' surface creation via `VK_EXT_headless_surface`
- [Null] Added EGL context creation on Mesa via `EGL_MESA_platform_surfaceless` - [Null] Added EGL context creation on Mesa via `EGL_MESA_platform_surfaceless`

View File

@@ -1622,6 +1622,12 @@ void _glfwTerminateX11(void)
_glfw.x11.xrender.handle = NULL; _glfw.x11.xrender.handle = NULL;
} }
if (_glfw.x11.xshape.handle)
{
_glfwPlatformFreeModule(_glfw.x11.xshape.handle);
_glfw.x11.xshape.handle = NULL;
}
if (_glfw.x11.vidmode.handle) if (_glfw.x11.vidmode.handle)
{ {
_glfwPlatformFreeModule(_glfw.x11.vidmode.handle); _glfwPlatformFreeModule(_glfw.x11.vidmode.handle);