Skip to content

Commit

Permalink
test: do not leak resources
Browse files Browse the repository at this point in the history
Silence two leak reports by check-valgrind.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Andrea Canciani committed Sep 9, 2010
1 parent 2b6c4c2 commit ca775cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/linear-gradient-large.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion test/nil-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ca775cb

Please sign in to comment.