[cairo-commit] [cairo-www] 2 commits - src/tutorial
Carl Worth
cworth at freedesktop.org
Mon Aug 6 07:26:32 PDT 2007
src/tutorial/mask.c | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 747844124b3bc3e89bf159fcc882a437ba669dc8
Merge: 2a172ee... fa51ccc...
Author: Carl Worth <cworth at cworth.org>
Date: Mon Aug 6 07:23:21 2007 -0700
Merge branch 'master' of annarchy.freedesktop.org:/srv/cairo.freedesktop.org/wiki
commit 2a172ee50d904fff99576ea029a5622ec0c5dc5a
Author: Carl Worth <cworth at cworth.org>
Date: Mon Aug 6 07:23:11 2007 -0700
Close memory leaks in mask.c
diff --git a/src/tutorial/mask.c b/src/tutorial/mask.c
index dd9db12..30a8ff8 100644
--- a/src/tutorial/mask.c
+++ b/src/tutorial/mask.c
@@ -22,7 +22,10 @@ main (int argc, char *argv[])
cairo_pattern_add_color_stop_rgba (radpat, 0.5, 0, 0, 0, 0);
cairo_set_source (cr, linpat);
+ cairo_pattern_destroy (linpat);
+
cairo_mask (cr, radpat);
+ cairo_pattern_destroy (radpat);
/* Write output and clean up */
cairo_surface_write_to_png (surface, "mask.png");
More information about the cairo-commit
mailing list