[pango] [cairotwisted] Plug couple other leaks



commit fed14242693db7f79c51190698aaf015d0e0a44f
Author: Behdad Esfahbod <behdad behdad org>
Date:   Mon Mar 30 13:21:23 2009 -0400

    [cairotwisted] Plug couple other leaks
---
 examples/cairotwisted.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/examples/cairotwisted.c b/examples/cairotwisted.c
index 27b9fb0..8140417 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]