diff --git a/test/buffer-diff.c b/test/buffer-diff.c index e4324ff2a..d111b238b 100644 --- a/test/buffer-diff.c +++ b/test/buffer-diff.c @@ -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;