diff options
author | Uli Schlachter <psychon@znc.in> | 2011-01-04 12:39:12 +0100 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2011-01-05 22:04:45 +0100 |
commit | a87001c0631da31f9caccdd99f31739c6e85a4e9 (patch) | |
tree | 0356102025ade59a45dde1226fe280361fa5e5bb /boilerplate | |
parent | 673c44d3e85e31d6411598706dc025cd474b7dcf (diff) |
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>
Diffstat (limited to 'boilerplate')
-rw-r--r-- | boilerplate/cairo-boilerplate-xcb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/boilerplate/cairo-boilerplate-xcb.c b/boilerplate/cairo-boilerplate-xcb.c index e45a2dc18..b1bf4de4f 100644 --- a/boilerplate/cairo-boilerplate-xcb.c +++ b/boilerplate/cairo-boilerplate-xcb.c @@ -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 |