From 496e79b63762c70fd022b2d9e2d6107bcce1807a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 10 Sep 2009 17:36:46 +0100 Subject: [xlib] Fix extraction of GC during XCloseDisplay() Jeff Muizelaar reported a bug from his firefox builds that was causing a double free during XCloseDisplay, and suggested it was related to c0e01d9cd. Reviewing the cleanup, suggested that the cause may just be a pair of missing parenthesis. --- src/cairo-xlib-screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-xlib-screen.c b/src/cairo-xlib-screen.c index 800c6d2e..331fdb3a 100644 --- a/src/cairo-xlib-screen.c +++ b/src/cairo-xlib-screen.c @@ -284,7 +284,7 @@ _cairo_xlib_screen_close_display (cairo_xlib_screen_t *info) #endif for (i = 0; i < ARRAY_LENGTH (info->gc); i++) { - if (old >> (8*i) & 0x7f) + if ((old >> (8*i)) & 0xff) XFreeGC (dpy, info->gc[i]); } -- cgit v1.2.3