summaryrefslogtreecommitdiff
path: root/test/linear-gradient-large.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2010-08-26 11:13:51 +0200
committerAndrea Canciani <ranma42@gmail.com>2010-09-09 17:24:13 +0200
commitca775cbf5a7245092cabdda43db9d06e96613ff4 (patch)
treef971e492bce287d58b8877b0ba8e76c661ac4d74 /test/linear-gradient-large.c
parent2b6c4c2a64c585cb815089e83719e00b1cfc985f (diff)
downloadcairo-ca775cbf5a7245092cabdda43db9d06e96613ff4.tar.gz
test: do not leak resources
Silence two leak reports by check-valgrind. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test/linear-gradient-large.c')
-rw-r--r--test/linear-gradient-large.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/linear-gradient-large.c b/test/linear-gradient-large.c
index f5e6a66a5..5646aa485 100644
--- a/test/linear-gradient-large.c
+++ b/test/linear-gradient-large.c
@@ -51,6 +51,7 @@ draw (cairo_t *cr, int width, int height)
cairo_pattern_add_color_stop_rgb (gr, 1.0, 1, 1, 1);
cairo_set_source (cr, gr);
+ cairo_pattern_destroy (gr);
cairo_paint (cr);
mark_point(cr, SIZE - OFFSET, OFFSET);