summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-05-06 09:37:02 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-05-06 09:37:02 +0100
commit62346c500a7421e30b3054fdcc07fc78a18da96e (patch)
tree3c7366de75698c54aa52d133a80e4ec3ac9ec6d6
parentfb6caf08ae5ccf8f8c2c251d32fd98aacbcebdcc (diff)
xlib: Ensure the global display mutex is initialized before use.
-rw-r--r--src/cairo-xlib-display.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-xlib-display.c b/src/cairo-xlib-display.c
index 49aa6981..afa75327 100644
--- a/src/cairo-xlib-display.c
+++ b/src/cairo-xlib-display.c
@@ -280,6 +280,8 @@ _cairo_xlib_device_create (Display *dpy)
XExtCodes *codes;
const char *env;
+ CAIRO_MUTEX_INITIALIZE ();
+
/* There is an apparent deadlock between this mutex and the
* mutex for the display, but it's actually safe. For the
* app to call XCloseDisplay() while any other thread is