Fix potential context resource leaks

There is a gap between the creation of the context and the call to
_glfwRefreshContextAttribs.
This commit is contained in:
Camilla Berglund
2016-08-05 11:22:55 +02:00
parent 1d3240ff9c
commit fcdef1d0a0
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1026,7 +1026,7 @@ void _glfwPlatformDestroyWindow(_GLFWwindow* window)
if (window->monitor)
releaseMonitor(window);
if (window->context.client != GLFW_NO_API)
if (window->context.destroy)
window->context.destroy(window);
if (_glfw.win32.disabledCursorWindow == window)