mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 00:30:57 +00:00
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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user