[patch] xcb: detach snapshot after xcb surface flush

"Henry (Yu) Song - SISA" <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <3955FA337689574EB32F94B12A7E6E9E246C9084@sisaex01sj>
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 <[email protected]>
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
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.