From 422618d67f27633867f3145c5e1cdc7b2b134252 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 22 Oct 2012 00:55:36 +0200 Subject: [PATCH] Added missing X extension test. --- src/x11_monitor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/x11_monitor.c b/src/x11_monitor.c index 6b2cf428..96cf2b8a 100644 --- a/src/x11_monitor.c +++ b/src/x11_monitor.c @@ -404,9 +404,12 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count) void _glfwPlatformDestroyMonitor(_GLFWmonitor* monitor) { + if (_glfwLibrary.X11.RandR.available) + { #if defined (_GLFW_HAS_XRANDR) - XRRFreeOutputInfo(monitor->X11.output); + XRRFreeOutputInfo(monitor->X11.output); #endif /*_GLFW_HAS_XRANDR*/ + } }