summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-08-23 14:37:09 +0000
committerCarl Worth <cworth@cworth.org>2005-08-23 14:37:09 +0000
commit2dfb7a662f63642d63a91e39ea1828957fab0705 (patch)
tree6f35be8136133afa1fb8b9f6dbe40d463445ecf3
parenta96a4a7ce6c402ab96a9e06b453d9c2203fad7bb (diff)
Fix memory leak of pattern.
-rw-r--r--ChangeLog4
-rw-r--r--test/text-pattern.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 11f4a25a..4b956c21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-08-23 Carl Worth <cworth@cworth.org>
+
+ * test/text-pattern.c: (draw): Fix memory leak of pattern.
+
2005-08-23 Owen Taylor <otaylor@redhat.com>
* src/cairo-win32-font.c (_cairo_win32_scaled_font_show_glyphs):
diff --git a/test/text-pattern.c b/test/text-pattern.c
index a337a332..bf7a5e28 100644
--- a/test/text-pattern.c
+++ b/test/text-pattern.c
@@ -67,6 +67,8 @@ draw (cairo_t *cr, int width, int height)
cairo_move_to (cr, 0.1, 0.6);
cairo_show_text (cr, "cairo");
+ cairo_pattern_destroy (pat);
+
return CAIRO_TEST_SUCCESS;
}