summaryrefslogtreecommitdiff
path: root/test/paint-with-alpha.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/paint-with-alpha.c')
-rw-r--r--test/paint-with-alpha.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/paint-with-alpha.c b/test/paint-with-alpha.c
index 678d3133..19b9e447 100644
--- a/test/paint-with-alpha.c
+++ b/test/paint-with-alpha.c
@@ -49,6 +49,7 @@ draw (cairo_t *cr, int width, int height)
cairo_pattern_set_filter (cairo_get_source (cr), CAIRO_FILTER_NEAREST);
cairo_paint_with_alpha (cr, 0.5);
+ cairo_surface_finish (surface); /* data will go out of scope */
cairo_surface_destroy (surface);
return CAIRO_TEST_SUCCESS;