From 6ee4316155c8714ee276f25a943a7de81de515cc Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 28 Aug 2012 12:08:28 +0000 Subject: main/gtk-xfce-engine: fix memleak https://bugzilla.xfce.org/show_bug.cgi?id=8521 --- main/gtk-xfce-engine/memleak.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 main/gtk-xfce-engine/memleak.patch (limited to 'main/gtk-xfce-engine/memleak.patch') diff --git a/main/gtk-xfce-engine/memleak.patch b/main/gtk-xfce-engine/memleak.patch new file mode 100644 index 0000000000..8c113445f6 --- /dev/null +++ b/main/gtk-xfce-engine/memleak.patch @@ -0,0 +1,19 @@ +From 964d4a05896bcb6dfbeec34dccb77e4f381363f1 Mon Sep 17 00:00:00 2001 +From: Landry Breuil +Date: Wed, 22 Aug 2012 07:34:45 +0000 +Subject: Don't leak a graduent pattern at each draw (bug #8521) + +--- +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); + } +-- +cgit v0.9.0.3 -- cgit v1.2.3