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

noreply at xfce.org noreply at xfce.org
Fri Feb 6 22:15:19 CET 2015


This is an automated email from the git hooks/post-receive script.

peter pushed a commit to branch peter/gtk2
in repository xfce/gtk-xfce-engine.

commit 5554fa303912c0d13c01bf4fe21e37990cce9bb4
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)
---
 src/gradient_draw.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gradient_draw.c b/src/gradient_draw.c
index 02deb88..37af559 100644
--- a/src/gradient_draw.c
+++ b/src/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);
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list