summaryrefslogtreecommitdiff
path: root/test/rgb24-ignore-alpha.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/rgb24-ignore-alpha.c')
-rw-r--r--test/rgb24-ignore-alpha.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/rgb24-ignore-alpha.c b/test/rgb24-ignore-alpha.c
index cd67ed3a..1c9d57e9 100644
--- a/test/rgb24-ignore-alpha.c
+++ b/test/rgb24-ignore-alpha.c
@@ -46,6 +46,7 @@ draw (cairo_t *cr, int width, int height)
cairo_set_source_surface (cr, surface, 0, 0);
cairo_paint (cr);
+ cairo_surface_finish (surface); /* colors will go out of scope */
cairo_surface_destroy (surface);
return CAIRO_TEST_SUCCESS;