From d75c06a9943edd1bce1e8584a8c958288c3da387 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 21 Oct 2012 23:55:41 +0200 Subject: [PATCH] Added missing screen resource cleanup. --- src/x11_monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/x11_monitor.c b/src/x11_monitor.c index 5af8eebb..860fe1ea 100644 --- a/src/x11_monitor.c +++ b/src/x11_monitor.c @@ -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; }