mirror of
https://github.com/glfw/glfw.git
synced 2026-08-28 09:05:54 +02:00
Added missing screen resource cleanup.
This commit is contained in:
@@ -446,6 +446,8 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
||||
monitors = (_GLFWmonitor**) calloc(sr->noutput, sizeof(_GLFWmonitor*));
|
||||
if (!monitors)
|
||||
{
|
||||
XRRFreeScreenResources(sr);
|
||||
|
||||
_glfwSetError(GLFW_OUT_OF_MEMORY, NULL);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user