mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-03 17:30:19 +01:00
[test] Fix surface leak from device-offset-positive.
A forgotten cairo_surface_destroy() caused the similar surface to be leaked during the test.
This commit is contained in:
parent
0d757a793d
commit
1659db2c1f
1 changed files with 1 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ draw (cairo_t *cr, int width, int height)
|
|||
cairo_destroy (cr2);
|
||||
cairo_surface_set_device_offset (surface, + SIZE / 2, + SIZE / 2);
|
||||
cairo_set_source_surface (cr, surface, SIZE / 2, SIZE / 2);
|
||||
cairo_surface_destroy (surface);
|
||||
|
||||
cairo_paint (cr);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue