Added missing module handle freeing.

master
Camilla Berglund ago%!(EXTRA string=12 years)
parent 194e22dbbe
commit 2656bf8f9f
  1. 2
      README.md
  2. 6
      src/win32_init.c

@ -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

@ -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);
}

Loading…
Cancel
Save