mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-03 18:40:18 +01:00
xcb: Fix premature pixmap free in boilerplate cleanup
A xcb surface has to be finished before the associated drawable can be freed or there will be X11 errors when the surface is later finished or used again. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
673c44d3e8
commit
a87001c063
1 changed files with 1 additions and 0 deletions
|
|
@ -91,6 +91,7 @@ _cairo_boilerplate_xcb_cleanup (void *closure)
|
|||
xcb_target_closure_t *xtc = closure;
|
||||
cairo_status_t status;
|
||||
|
||||
cairo_surface_finish (xtc->surface);
|
||||
if (xtc->is_pixmap)
|
||||
xcb_free_pixmap (xtc->c, xtc->drawable);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue