[poppler] glib/demo

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Fri Jun 19 08:46:20 PDT 2009


 glib/demo/render.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 3a52d46e5df8eb926b550d7f7a82f316dbf6808f
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Fri Jun 19 17:45:44 2009 +0200

    [glib-demo] Destroy pattern after using it

diff --git a/glib/demo/render.c b/glib/demo/render.c
index d5bd9d3..4879897 100644
--- a/glib/demo/render.c
+++ b/glib/demo/render.c
@@ -205,6 +205,7 @@ pgd_render_start (GtkButton     *button,
 		cairo_set_operator (cr, CAIRO_OPERATOR_DEST_OVER);
 		cairo_set_source (cr, pattern);
 		cairo_paint (cr);
+		cairo_pattern_destroy (pattern);
 		g_timer_stop (timer);
 		
 		cairo_destroy (cr);


More information about the poppler mailing list