mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-11 21:30:25 +01:00
[test] Plug a leak in the test suite
This commit is contained in:
parent
7de96a1faa
commit
bd2cd2c868
1 changed files with 1 additions and 0 deletions
|
|
@ -243,6 +243,7 @@ extract_sub_surface (cairo_surface_t **surface, int x, int y)
|
|||
cairo_set_source_surface (cr, *surface, -x, -y);
|
||||
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
||||
cairo_paint (cr);
|
||||
cairo_destroy (cr);
|
||||
|
||||
cairo_surface_destroy (*surface);
|
||||
*surface = sub;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue