summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-09-10 17:36:46 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-09-10 17:36:46 +0100
commit496e79b63762c70fd022b2d9e2d6107bcce1807a (patch)
tree0cbe61f415c0003606bf9d652b72525ab876db49
parentf34affaa1e0b52e255d882b84bf064f9a9d4a95d (diff)
[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.
-rw-r--r--src/cairo-xlib-screen.c2
1 files changed, 1 insertions, 1 deletions
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]);
}