summaryrefslogtreecommitdiff
path: root/examples/cairotwisted.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-03-30 13:21:23 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-03-30 13:21:23 -0400
commitfed14242693db7f79c51190698aaf015d0e0a44f (patch)
tree753d03dbf2cd71d8378d408072e745f19c816801 /examples/cairotwisted.c
parent434011df553c8d40c1e6508c9bdea4884e591f97 (diff)
downloadpango-fed14242693db7f79c51190698aaf015d0e0a44f.tar.gz
[cairotwisted] Plug couple other leaks
Diffstat (limited to 'examples/cairotwisted.c')
-rw-r--r--examples/cairotwisted.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/cairotwisted.c b/examples/cairotwisted.c
index 27b9fb04..81404172 100644
--- a/examples/cairotwisted.c
+++ b/examples/cairotwisted.c
@@ -457,6 +457,7 @@ map_path_onto (cairo_t *cr, cairo_path_t *path)
cairo_append_path (cr, current_path);
+ cairo_path_destroy (current_path);
g_free (param.parametrization);
}
@@ -532,6 +533,8 @@ draw_twisted (cairo_t *cr,
draw_text (cr, x, y, font, text);
map_path_onto (cr, path);
+ cairo_path_destroy (path);
+
cairo_fill_preserve (cr);
cairo_save (cr);