diff --git a/README.md b/README.md index 7ad77274..4ada3e5d 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,8 @@ See the [GLFW 3.0 documentation](http://www.glfw.org/docs/3.0/). - [Win32] Bugfix: The clipboard string was not freed on terminate - [Win32] Bugfix: Entry points for OpenGL 1.0 and 1.1 functions were not returned by `glfwGetProcAddress` + - [Win32] Bugfix: The user32 and dwmapi module handles were not freed on + library termination - [Cocoa] Bugfix: The clipboard string was not freed on terminate - [X11] Bugfix: Override-redirect windows were resized to the desired instead of the actual resolution of the selected video mode diff --git a/src/win32_init.c b/src/win32_init.c index d1335d3a..c2c80186 100644 --- a/src/win32_init.c +++ b/src/win32_init.c @@ -107,6 +107,12 @@ static void terminateLibraries(void) _glfw.win32.winmm.instance = NULL; } #endif // _GLFW_NO_DLOAD_WINMM + + if (_glfw.win32.user32.instance) + FreeLibrary(_glfw.win32.user32.instance); + + if (_glfw.win32.dwmapi.instance) + FreeLibrary(_glfw.win32.dwmapi.instance); }