[cairo-commit] src/cairo-xlib-display.c

Chris Wilson ickle at kemper.freedesktop.org
Thu May 6 01:44:07 PDT 2010


 src/cairo-xlib-display.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 62346c500a7421e30b3054fdcc07fc78a18da96e
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu May 6 09:37:02 2010 +0100

    xlib: Ensure the global display mutex is initialized before use.

diff --git a/src/cairo-xlib-display.c b/src/cairo-xlib-display.c
index 49aa698..afa7532 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


More information about the cairo-commit mailing list