mirror of
https://github.com/glfw/glfw.git
synced 2025-04-08 06:43:14 +00:00
WGL: Fix leak on format attrib query failure
This was found by Coverity Scan.
This commit is contained in:
parent
bcd8f9aff2
commit
782f7fe0c7
1 changed files with 2 additions and 0 deletions
|
@ -146,6 +146,8 @@ static int choosePixelFormat(_GLFWwindow* window,
|
|||
{
|
||||
_glfwInputErrorWin32(GLFW_PLATFORM_ERROR,
|
||||
"WGL: Failed to retrieve pixel format attributes");
|
||||
|
||||
free(usableConfigs);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue