summaryrefslogtreecommitdiff
path: root/test/pattern-getters.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2007-03-02 11:32:47 -0800
committerCarl Worth <cworth@cworth.org>2007-03-02 11:32:47 -0800
commit9854d01a8d3a1f9f6148dfd6e22623c4586aaa96 (patch)
treeb9ac059876442923b973ed6383cf75c00326781b /test/pattern-getters.c
parentb52dda62fea0745cc28d6149dc4688ade524b4df (diff)
Fix leak in pattern-getters test (missing cairo_pattern_destroy)
Diffstat (limited to 'test/pattern-getters.c')
-rw-r--r--test/pattern-getters.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/pattern-getters.c b/test/pattern-getters.c
index fcfd0b98..d4014ea7 100644
--- a/test/pattern-getters.c
+++ b/test/pattern-getters.c
@@ -160,6 +160,8 @@ draw (cairo_t *cr, int width, int height)
!DOUBLE_EQUALS(e,5.0) ||
!DOUBLE_EQUALS(f,6.0))
return CAIRO_TEST_FAILURE;
+
+ cairo_pattern_destroy (pat);
}
cairo_set_source_rgb (cr, 0, 1, 0);