From adc9f9d67641aad4403c7d427a31d5dc72967ee5 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 e110af85..2a91bd83 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