[cairo-commit] 2 commits - test/push-group.c
test/text-antialias-gray.c test/text-antialias-none.c
test/.valgrind-suppressions test/zero-alpha.c
Carl Worth
cworth at kemper.freedesktop.org
Tue Aug 8 13:04:12 PDT 2006
test/.valgrind-suppressions | 12 ++++++++++++
test/push-group.c | 2 ++
test/text-antialias-gray.c | 2 ++
test/text-antialias-none.c | 2 ++
test/zero-alpha.c | 2 ++
5 files changed, 20 insertions(+)
New commits:
diff-tree ca99478d4309ee66bfd0196d3d53991a46fa8367 (from d6e204b9d58069ba34969e6f23cf0bdb4c73b9e1)
Author: Carl Worth <cworth at cworth.org>
Date: Tue Aug 8 12:48:56 2006 -0700
Fix some memory leaks in a few of the tests.
diff --git a/test/push-group.c b/test/push-group.c
index 0c6e50b..4e6fed0 100644
--- a/test/push-group.c
+++ b/test/push-group.c
@@ -109,6 +109,8 @@ draw (cairo_t *cr, int width, int height
}
}
+ cairo_pattern_destroy (gradient);
+
return CAIRO_TEST_SUCCESS;
}
diff --git a/test/text-antialias-gray.c b/test/text-antialias-gray.c
index 8090d8e..dd0f34e 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);
diff --git a/test/text-antialias-none.c b/test/text-antialias-none.c
index f9c86a9..f53fde4 100644
--- a/test/text-antialias-none.c
+++ b/test/text-antialias-none.c
@@ -61,6 +61,8 @@ draw (cairo_t *cr, int width, int height
cairo_font_options_set_antialias (font_options, CAIRO_ANTIALIAS_NONE);
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);
diff --git a/test/zero-alpha.c b/test/zero-alpha.c
index 833e24c..9a01b22 100644
--- a/test/zero-alpha.c
+++ b/test/zero-alpha.c
@@ -90,6 +90,8 @@ draw (cairo_t *cr, int width, int height
for (i=0; i < REPS; i++)
cairo_paint (cr);
+ cairo_surface_destroy (surface);
+
return CAIRO_TEST_SUCCESS;
}
diff-tree d6e204b9d58069ba34969e6f23cf0bdb4c73b9e1 (from 16c18aea52f668caf9cd0b9774f8fa209468662f)
Author: Carl Worth <cworth at cworth.org>
Date: Tue Aug 8 12:48:20 2006 -0700
Add a variation of an existing valgrind suppression
diff --git a/test/.valgrind-suppressions b/test/.valgrind-suppressions
index f9f8a86..53d0a99 100644
--- a/test/.valgrind-suppressions
+++ b/test/.valgrind-suppressions
@@ -52,6 +52,18 @@
fun:_cairo_pdf_surface_paint
}
{
+ cairo's _cairo_pdf_surface_paint triggers apparent bugs in libz
+ Memcheck:Cond
+ obj:/usr/lib/libz.so.1.2.3
+ obj:/usr/lib/libz.so.1.2.3
+ fun:deflate
+ fun:compress2
+ fun:compress
+ fun:compress_dup
+ fun:emit_pattern
+ fun:_cairo_pdf_surface_paint
+}
+{
pthread initialization strstr bug
Memcheck:Cond
fun:strstr
More information about the cairo-commit
mailing list