[cairo] [patch] xcb: detach snapshot after xcb surface flush
Henry (Yu) Song - SISA
hsong at sisa.samsung.com
Tue Sep 11 10:08:51 PDT 2012
I am not sure this is the right place to fix. Please review.
>From cb0eaeed8f4c3124b336ff38a68e020b8c4851f6 Mon Sep 17 00:00:00 2001
From: Henry Song <henry.song at samsung.com>
Date: Tue, 11 Sep 2012 10:05:55 -0700
Subject: [PATCH] xcb: xcb-render attaches its fallback as snapshot during xcb
surface flush. This causes surface_destroy crashes on
xcb_surface. Dettach snapshot after flush
---
src/cairo-surface.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/cairo-surface.c b/src/cairo-surface.c
index dcce41e..f03aaa3 100644
--- a/src/cairo-surface.c
+++ b/src/cairo-surface.c
@@ -992,6 +992,7 @@ _cairo_surface_finish_snapshots (cairo_surface_t *surface)
/* update the snapshots *before* we declare the surface as finished */
surface->_finishing = TRUE;
status = _cairo_surface_flush (surface, 0);
+ _cairo_surface_detach_snapshots (surface);
(void) status;
}
--
1.7.9.5
More information about the cairo
mailing list