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 | |
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')
-rw-r--r-- | main/gtk-xfce-engine/APKBUILD | 17 | ||||
-rw-r--r-- | main/gtk-xfce-engine/memleak.patch | 19 |
2 files changed, 33 insertions, 3 deletions
diff --git a/main/gtk-xfce-engine/APKBUILD b/main/gtk-xfce-engine/APKBUILD index e983ff2cd..9004db929 100644 --- a/main/gtk-xfce-engine/APKBUILD +++ b/main/gtk-xfce-engine/APKBUILD @@ -1,16 +1,26 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=gtk-xfce-engine pkgver=3.0.0 -pkgrel=0 +pkgrel=1 pkgdesc="A port of Xfce engine to GTK+-2.0" url="http://www.xfce.org/" arch="all" license="GPL-2" depends= makedepends="pkgconfig gtk+-dev libiconv-dev gettext-dev expat-dev" -source="http://archive.xfce.org/src/xfce/gtk-xfce-engine/${pkgver%.*}/gtk-xfce-engine-$pkgver.tar.bz2" +source="http://archive.xfce.org/src/xfce/gtk-xfce-engine/${pkgver%.*}/gtk-xfce-engine-$pkgver.tar.bz2 + memleak.patch" _builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + build() { cd "$_builddir" ./configure --prefix=/usr \ @@ -26,4 +36,5 @@ package() { make DESTDIR="$pkgdir" install || return 1 find "$pkgdir"/ -name '*.la' -delete } -md5sums="c02dec13f063c285de44d5388902822a gtk-xfce-engine-3.0.0.tar.bz2" +md5sums="c02dec13f063c285de44d5388902822a gtk-xfce-engine-3.0.0.tar.bz2 +cbb977c1160d0a07c408a18e748d7b68 memleak.patch" diff --git a/main/gtk-xfce-engine/memleak.patch b/main/gtk-xfce-engine/memleak.patch new file mode 100644 index 000000000..8c113445f --- /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 |