mirror of
https://github.com/glfw/glfw.git
synced 2026-01-11 23:33:16 +01:00
WGL: Fix leak on format attrib query failure
This was found by Coverity Scan.
This commit is contained in:
@@ -146,6 +146,8 @@ static int choosePixelFormat(_GLFWwindow* window,
|
||||
{
|
||||
_glfwInputErrorWin32(GLFW_PLATFORM_ERROR,
|
||||
"WGL: Failed to retrieve pixel format attributes");
|
||||
|
||||
free(usableConfigs);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user