From fed14242693db7f79c51190698aaf015d0e0a44f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 30 Mar 2009 13:21:23 -0400 Subject: [cairotwisted] Plug couple other leaks --- examples/cairotwisted.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.1