summaryrefslogtreecommitdiff
path: root/test/text-antialias-gray.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-08-08 12:48:56 -0700
committerCarl Worth <cworth@cworth.org>2006-08-08 12:48:56 -0700
commitca99478d4309ee66bfd0196d3d53991a46fa8367 (patch)
tree96deea3396a50f33f96dcd78cba9857555f90839 /test/text-antialias-gray.c
parentd6e204b9d58069ba34969e6f23cf0bdb4c73b9e1 (diff)
Fix some memory leaks in a few of the tests.
Diffstat (limited to 'test/text-antialias-gray.c')
-rw-r--r--test/text-antialias-gray.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/text-antialias-gray.c b/test/text-antialias-gray.c
index 8090d8e06..dd0f34e5f 100644
--- a/test/text-antialias-gray.c
+++ b/test/text-antialias-gray.c
@@ -61,6 +61,8 @@ draw (cairo_t *cr, int width, int height)
cairo_font_options_set_antialias (font_options, CAIRO_ANTIALIAS_GRAY);
cairo_set_font_options (cr, font_options);
+ cairo_font_options_destroy (font_options);
+
cairo_set_source_rgb (cr, 0, 0, 0); /* black */
cairo_text_extents (cr, black, &extents);
cairo_move_to (cr, -extents.x_bearing, -extents.y_bearing);