mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-17 12:30:31 +01:00
xcb: Don't finish snapshots when they are detached
Some code might own a reference to the snapshot when it is detached. For this reason, we shouldn't finish the snapshot except when its reference count drops to zero. This avoids destroying source patterns which get evicted from the cache while acquiring the mask. Fixes xcb-stress-cache. Big "thank you" to Andrea Canciani for helping in figuring this one out. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
44095f3dde
commit
7f83b4e949
1 changed files with 1 additions and 1 deletions
|
|
@ -1308,7 +1308,7 @@ _cairo_xcb_surface_picture (cairo_xcb_surface_t *target,
|
|||
|
||||
_cairo_surface_attach_snapshot (source,
|
||||
&picture->base,
|
||||
cairo_surface_finish);
|
||||
NULL);
|
||||
|
||||
setup_picture:
|
||||
filter = pattern->base.filter;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue