Added missing screen resource cleanup.

master
Camilla Berglund ago%!(EXTRA string=13 years)
parent 8176cae1bc
commit d75c06a994
  1. 2
      src/x11_monitor.c

@ -446,6 +446,8 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
monitors = (_GLFWmonitor**) calloc(sr->noutput, sizeof(_GLFWmonitor*)); monitors = (_GLFWmonitor**) calloc(sr->noutput, sizeof(_GLFWmonitor*));
if (!monitors) if (!monitors)
{ {
XRRFreeScreenResources(sr);
_glfwSetError(GLFW_OUT_OF_MEMORY, NULL); _glfwSetError(GLFW_OUT_OF_MEMORY, NULL);
return NULL; return NULL;
} }

Loading…
Cancel
Save