diff options
author | Andrea Canciani <ranma42@gmail.com> | 2010-08-26 11:13:51 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2010-09-09 17:24:13 +0200 |
commit | ca775cbf5a7245092cabdda43db9d06e96613ff4 (patch) | |
tree | f971e492bce287d58b8877b0ba8e76c661ac4d74 /test/nil-surface.c | |
parent | 2b6c4c2a64c585cb815089e83719e00b1cfc985f (diff) |
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/nil-surface.c')
-rw-r--r-- | test/nil-surface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/nil-surface.c b/test/nil-surface.c index 408bdba34..30a1f97e5 100644 --- a/test/nil-surface.c +++ b/test/nil-surface.c @@ -154,7 +154,8 @@ draw (cairo_t *cr, int width, int height) /* Test that push_group doesn't crash */ cairo_push_group (cr2); cairo_stroke (cr2); - cairo_pop_group (cr2); + pattern = cairo_pop_group (cr2); + cairo_pattern_destroy (pattern); cairo_destroy (cr2); |