From e06507a75c8436a46a46aae9d944eea5d9e4f841 Mon Sep 17 00:00:00 2001 From: floppyhammer Date: Sun, 19 Feb 2023 22:23:35 +0800 Subject: [PATCH] Free uxtheme properly --- src/win32_init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/win32_init.c b/src/win32_init.c index 63b77663..e84a4873 100644 --- a/src/win32_init.c +++ b/src/win32_init.c @@ -207,6 +207,9 @@ static void freeLibraries(void) if (_glfw.win32.ntdll.instance) _glfwPlatformFreeModule(_glfw.win32.ntdll.instance); + + if (_glfw.win32.uxtheme.instance) + _glfwPlatformFreeModule(_glfw.win32.uxtheme.instance); } // Create key code translation tables