[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:
Chris Wilson 2008-11-29 10:37:58 +00:00
parent 0d757a793d
commit 1659db2c1f

View file

@ -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);