diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2012-08-29 23:56:19 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-08-31 09:06:16 +0200 |
commit | 22e1983d8ee2160235e8a6dd0a9e40275239d146 (patch) | |
tree | 5c8c5a4836d66a3a517a4405dffe84b502b5226a /meta-xfce | |
parent | dac61f2ef0ed82d39fdda420c1bd9abd3b4a422f (diff) | |
download | meta-openembedded-22e1983d8ee2160235e8a6dd0a9e40275239d146.tar.gz |
gtk-xfce-engine: fix memory leak
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-xfce')
-rw-r--r-- | meta-xfce/recipes-xfce/gtk-xfce-engine/files/0001-Don-t-leak-a-graduent-pattern-at-each-draw-bug-8521.patch | 30 | ||||
-rw-r--r-- | meta-xfce/recipes-xfce/gtk-xfce-engine/gtk-xfce-engine_2.9.0.bb | 8 |
2 files changed, 35 insertions, 3 deletions
diff --git a/meta-xfce/recipes-xfce/gtk-xfce-engine/files/0001-Don-t-leak-a-graduent-pattern-at-each-draw-bug-8521.patch b/meta-xfce/recipes-xfce/gtk-xfce-engine/files/0001-Don-t-leak-a-graduent-pattern-at-each-draw-bug-8521.patch new file mode 100644 index 000000000..89fddb301 --- /dev/null +++ b/meta-xfce/recipes-xfce/gtk-xfce-engine/files/0001-Don-t-leak-a-graduent-pattern-at-each-draw-bug-8521.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 868e3fcbb14b836b6f5f1cc73314aebe8453a939 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> | ||
3 | Date: Wed, 29 Aug 2012 19:59:24 +0200 | ||
4 | Subject: [PATCH] Don't leak a graduent pattern at each draw (bug #8521) | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Upstream-Status: Backport [1] | ||
10 | [1] http://git.xfce.org/xfce/gtk-xfce-engine/commit/?id=964d4a05896bcb6dfbeec34dccb77e4f381363f1 | ||
11 | |||
12 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | ||
13 | --- | ||
14 | src/gradient_draw.c | 2 ++ | ||
15 | 1 files changed, 2 insertions(+), 0 deletions(-) | ||
16 | |||
17 | diff --git a/src/gradient_draw.c b/src/gradient_draw.c | ||
18 | index 02deb88..37af559 100644 | ||
19 | --- a/src/gradient_draw.c | ||
20 | +++ b/src/gradient_draw.c | ||
21 | @@ -278,4 +278,6 @@ void gradient_draw_shaded(cairo_t *cr, gint x, gint y, gint width, gint height, | ||
22 | cairo_fill (cr); | ||
23 | |||
24 | cairo_restore(cr); | ||
25 | + | ||
26 | + cairo_pattern_destroy(gradient); | ||
27 | } | ||
28 | -- | ||
29 | 1.7.6.5 | ||
30 | |||
diff --git a/meta-xfce/recipes-xfce/gtk-xfce-engine/gtk-xfce-engine_2.9.0.bb b/meta-xfce/recipes-xfce/gtk-xfce-engine/gtk-xfce-engine_2.9.0.bb index 0ef9d8bc5..9900bd634 100644 --- a/meta-xfce/recipes-xfce/gtk-xfce-engine/gtk-xfce-engine_2.9.0.bb +++ b/meta-xfce/recipes-xfce/gtk-xfce-engine/gtk-xfce-engine_2.9.0.bb | |||
@@ -4,13 +4,15 @@ LICENSE = "GPLv2" | |||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
5 | DEPENDS = "gtk+ xfce4-dev-tools-native" | 5 | DEPENDS = "gtk+ xfce4-dev-tools-native" |
6 | 6 | ||
7 | PR = "r0" | 7 | PR = "r1" |
8 | 8 | ||
9 | inherit xfce | 9 | inherit xfce |
10 | 10 | ||
11 | SRC_URI += "file://0001-Don-t-leak-a-graduent-pattern-at-each-draw-bug-8521.patch" | ||
12 | SRC_URI[md5sum] = "e2bc76ab5093ff8472e728e6d6ad5da2" | ||
13 | SRC_URI[sha256sum] = "55604002526c800539f2a8a79e7df3bf23717f45e4bfab31c154c8d01caf3af7" | ||
14 | |||
11 | FILES_${PN} += "${libdir}/gtk-2.0/*/engines \ | 15 | FILES_${PN} += "${libdir}/gtk-2.0/*/engines \ |
12 | ${datadir}/themes/" | 16 | ${datadir}/themes/" |
13 | FILES_${PN}-dbg += "${libdir}/gtk-2.0/*/engines/.debug" | 17 | FILES_${PN}-dbg += "${libdir}/gtk-2.0/*/engines/.debug" |
14 | 18 | ||
15 | SRC_URI[md5sum] = "e2bc76ab5093ff8472e728e6d6ad5da2" | ||
16 | SRC_URI[sha256sum] = "55604002526c800539f2a8a79e7df3bf23717f45e4bfab31c154c8d01caf3af7" | ||