Commit 782f7fe0 authored by Camilla Löwy's avatar Camilla Löwy
Browse files

WGL: Fix leak on format attrib query failure

This was found by Coverity Scan.
parent bcd8f9af
......@@ -146,6 +146,8 @@ static int choosePixelFormat(_GLFWwindow* window,
{
_glfwInputErrorWin32(GLFW_PLATFORM_ERROR,
"WGL: Failed to retrieve pixel format attributes");
free(usableConfigs);
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment