diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-08-28 12:08:28 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-08-28 12:43:17 +0000 |
commit | 6ee4316155c8714ee276f25a943a7de81de515cc (patch) | |
tree | 517f8a6de30ef8b645e8244cb57286e326a56fb5 /main/gtk-xfce-engine/memleak.patch | |
parent | c7c5e59f82b4bb978ce60134ebeb96bef098ad29 (diff) | |
download | aports-6ee4316155c8714ee276f25a943a7de81de515cc.tar.bz2 aports-6ee4316155c8714ee276f25a943a7de81de515cc.tar.xz |
main/gtk-xfce-engine: fix memleak
https://bugzilla.xfce.org/show_bug.cgi?id=8521
Diffstat (limited to 'main/gtk-xfce-engine/memleak.patch')
-rw-r--r-- | main/gtk-xfce-engine/memleak.patch | 19 |
1 files changed, 19 insertions, 0 deletions
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 <landry@xfce.org> +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 |