[Xfce4-commits] <gtk-xfce-engine:master> Don't leak a graduent pattern at each draw (bug #8521)

Peter de Ridder noreply at xfce.org
Sun Aug 26 20:34:01 CEST 2012


Updating branch refs/heads/master
         to 964d4a05896bcb6dfbeec34dccb77e4f381363f1 (commit)
       from c1c38420c532808e92089426ea301fe4ad8441ac (commit)

commit 964d4a05896bcb6dfbeec34dccb77e4f381363f1
Author: Landry Breuil <landry at xfce.org>
Date:   Wed Aug 22 09:34:45 2012 +0200

    Don't leak a graduent pattern at each draw (bug #8521)

 gtk-2.0/gradient_draw.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gtk-2.0/gradient_draw.c b/gtk-2.0/gradient_draw.c
index 02deb88..37af559 100644
--- a/gtk-2.0/gradient_draw.c
+++ b/gtk-2.0/gradient_draw.c
@@ -278,4 +278,6 @@ void gradient_draw_shaded(cairo_t *cr, gint x, gint y, gint width, gint height,
     cairo_fill (cr);
 
     cairo_restore(cr);
+
+    cairo_pattern_destroy(gradient);
 }


More information about the Xfce4-commits mailing list