mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-02 00:17:58 +02:00
xlib: Aquire display before using it in DEBUG message.
This commit is contained in:
parent
498421bec9
commit
793f8223d4
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue