mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-03 23:18:17 +02:00
xcb: Fix a GC leak when a screen is finished
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
c28196d945
commit
ac9482bdf0
1 changed files with 5 additions and 0 deletions
|
|
@ -80,6 +80,11 @@ _cairo_xcb_screen_finish (cairo_xcb_screen_t *screen)
|
|||
for (i = 0; i < ARRAY_LENGTH (screen->stock_colors); i++)
|
||||
cairo_surface_destroy (screen->stock_colors[i]);
|
||||
|
||||
for (i = 0; i < ARRAY_LENGTH (screen->gc); i++) {
|
||||
if (((screen->gc_depths >> (8*i)) & 0xff) != 0)
|
||||
_cairo_xcb_connection_free_gc (screen->connection, screen->gc[i]);
|
||||
}
|
||||
|
||||
_cairo_cache_fini (&screen->linear_pattern_cache);
|
||||
_cairo_cache_fini (&screen->radial_pattern_cache);
|
||||
_cairo_freelist_fini (&screen->pattern_cache_entry_freelist);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue