mirror of
https://github.com/gwm17/glfw.git
synced 2025-01-31 03:18:50 -05:00
WGL: Fix leak on format attrib query failure
This was found by Coverity Scan.
This commit is contained in:
parent
bcd8f9aff2
commit
782f7fe0c7
|
@ -146,6 +146,8 @@ static int choosePixelFormat(_GLFWwindow* window,
|
||||||
{
|
{
|
||||||
_glfwInputErrorWin32(GLFW_PLATFORM_ERROR,
|
_glfwInputErrorWin32(GLFW_PLATFORM_ERROR,
|
||||||
"WGL: Failed to retrieve pixel format attributes");
|
"WGL: Failed to retrieve pixel format attributes");
|
||||||
|
|
||||||
|
free(usableConfigs);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user