[test] Plug a leak in the test suite

This commit is contained in:
Behdad Esfahbod 2007-03-01 18:14:33 -05:00
parent 7de96a1faa
commit bd2cd2c868

View file

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