mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 09:58:12 +02:00
test/subsurface-modify-parent: Free region.
Minor refleak.
This commit is contained in:
parent
4a46c71556
commit
6a06e0ef7b
1 changed files with 1 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ draw (cairo_t *cr, int width, int height)
|
|||
cairo_fill (cr);
|
||||
|
||||
cairo_set_source_surface (cr, region, 20, 20);
|
||||
cairo_surface_destroy (region);
|
||||
|
||||
/* repeat the pattern around the outside, but do not overwrite...*/
|
||||
cairo_pattern_set_extend (cairo_get_source (cr), CAIRO_EXTEND_REPEAT);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue