[cairo-commit] src/cairo-xlib-surface.c
Chris Wilson
ickle at kemper.freedesktop.org
Thu Apr 25 01:03:40 PDT 2013
src/cairo-xlib-surface.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 793f8223d4a71f3fc7e74722fb60659e7100a39d
Author: egag <ed44 at xs4all.nl>
Date: Wed Apr 24 12:07:47 2013 +0200
xlib: Aquire display before using it in DEBUG message.
diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index 96ba3ad..41e3a8d 100644
--- a/src/cairo-xlib-surface.c
+++ b/src/cairo-xlib-surface.c
@@ -385,14 +385,14 @@ _cairo_xlib_surface_finish (void *abstract_surface)
cairo_status_t status;
cairo_xlib_display_t *display;
- X_DEBUG ((display->display, "finish (drawable=%x)", (unsigned int) surface->drawable));
-
cairo_list_del (&surface->link);
status = _cairo_xlib_display_acquire (surface->base.device, &display);
if (unlikely (status))
return status;
+ X_DEBUG ((display->display, "finish (drawable=%x)", (unsigned int) surface->drawable));
+
if (surface->embedded_source.picture)
XRenderFreePicture (display->display, surface->embedded_source.picture);
if (surface->picture)
More information about the cairo-commit
mailing list