summaryrefslogtreecommitdiff
path: root/extra/gnome-shell
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-07 22:35:21 +0000
committerroot <root@rshg047.dnsready.net>2011-05-07 22:35:21 +0000
commitfe6dc99352fe2b801d251e55b2b8baa71441908e (patch)
treeb57122dcf7e7901a912aaf1783a7c8b9a4bd1085 /extra/gnome-shell
parentb0145a13655cdf02f228f07b376e58a825e28b78 (diff)
Sat May 7 22:35:21 UTC 2011
Diffstat (limited to 'extra/gnome-shell')
-rw-r--r--extra/gnome-shell/PKGBUILD14
-rw-r--r--extra/gnome-shell/shell-xfixes-cursor_missing_free.patch22
-rw-r--r--extra/gnome-shell/st-private_fix_memory_leak.patch40
3 files changed, 72 insertions, 4 deletions
diff --git a/extra/gnome-shell/PKGBUILD b/extra/gnome-shell/PKGBUILD
index cbef4fbb6..55bf202d5 100644
--- a/extra/gnome-shell/PKGBUILD
+++ b/extra/gnome-shell/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 122633 2011-05-05 11:05:07Z ibiru $
+# $Id: PKGBUILD 122711 2011-05-06 07:06:52Z ibiru $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
# Contributor: Flamelab <panosfilip@gmail.com
pkgname=gnome-shell
pkgver=3.0.1
-pkgrel=2
+pkgrel=3
pkgdesc="The next generation GNOME Shell"
arch=('i686' 'x86_64')
url="http://live.gnome.org/GnomeShell"
@@ -19,16 +19,22 @@ install=gnome-shell.install
groups=(gnome)
source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
arch.patch
- network_fixes_up_to_5090a4ccce.patch)
+ network_fixes_up_to_5090a4ccce.patch
+ shell-xfixes-cursor_missing_free.patch
+ st-private_fix_memory_leak.patch)
sha256sums=('01f7ae942ba9687a5e67d62423843ed404d77b35f74acc212a5f391beed8e079'
'a35d5e5f9f781728070aecae3bfe329f49dadcd50ca2984e0fbdd2219825a0db'
- '01bf41483d5d8935ed2dd6294ee04024f2d9bcb2ef13276b07331e485965c822')
+ '01bf41483d5d8935ed2dd6294ee04024f2d9bcb2ef13276b07331e485965c822'
+ 'c8b92768c869d0d77595da3466cc0dba3b6f067ea5fac048f32a918bbe98bbf6'
+ '8b80a0cec39c38a47521183a3030a782ab84bb6ea5e9cc58213589245288e718')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/arch.patch"
patch -Np1 -i "${srcdir}/network_fixes_up_to_5090a4ccce.patch"
+ patch -Np1 -i "${srcdir}/shell-xfixes-cursor_missing_free.patch"
+ patch -Np1 -i "${srcdir}/st-private_fix_memory_leak.patch"
./configure --prefix=/usr --sysconfdir=/etc \
--libexecdir=/usr/lib/gnome-shell \
diff --git a/extra/gnome-shell/shell-xfixes-cursor_missing_free.patch b/extra/gnome-shell/shell-xfixes-cursor_missing_free.patch
new file mode 100644
index 000000000..6a66c9384
--- /dev/null
+++ b/extra/gnome-shell/shell-xfixes-cursor_missing_free.patch
@@ -0,0 +1,22 @@
+From 88de26138a8b79d89884ff2eb6471c5a8e3b39ca Mon Sep 17 00:00:00 2001
+From: Maxim Ermilov <zaspire@rambler.ru>
+Date: Thu, 05 May 2011 10:06:05 +0000
+Subject: shell-xfixes-cursor: missing XFree
+
+memory returned by XFixesGetCursorImage should be freed after usage.
+https://bugzilla.gnome.org/show_bug.cgi?id=642652
+---
+diff --git a/src/shell-xfixes-cursor.c b/src/shell-xfixes-cursor.c
+index 14d2b59..334503d 100644
+--- a/src/shell-xfixes-cursor.c
++++ b/src/shell-xfixes-cursor.c
+@@ -254,6 +254,7 @@ xfixes_cursor_reset_image (ShellXFixesCursor *xfixes_cursor)
+ xfixes_cursor->cursor_hot_y = cursor_image->yhot;
+ g_signal_emit (xfixes_cursor, signals[CURSOR_CHANGED], 0);
+ }
++ XFree (cursor_image);
+ }
+
+ static void
+--
+cgit v0.9
diff --git a/extra/gnome-shell/st-private_fix_memory_leak.patch b/extra/gnome-shell/st-private_fix_memory_leak.patch
new file mode 100644
index 000000000..677a26531
--- /dev/null
+++ b/extra/gnome-shell/st-private_fix_memory_leak.patch
@@ -0,0 +1,40 @@
+From 72f9f482d6f1bcb53ea2bd1606818af1f33a5a8c Mon Sep 17 00:00:00 2001
+From: Colin Walters <walters@verbum.org>
+Date: Thu, 05 May 2011 19:21:58 +0000
+Subject: st-private: Fix memory leak
+
+==13810== 11,360 bytes in 1 blocks are definitely lost in loss record 18,574 of 18,765
+==13810== at 0x4005447: calloc (vg_replace_malloc.c:467)
+==13810== by 0x5191882: standard_calloc (gmem.c:107)
+==13810== by 0x51920A7: g_malloc0 (gmem.c:196)
+==13810== by 0x4056201: blur_pixels (st-private.c:466)
+==13810== by 0x40573B4: _st_create_shadow_cairo_pattern (st-private.c:710)
+==13810== by 0x4070746: st_theme_node_paint (st-theme-node-drawing.c:856)
+==13810== by 0x3FEFFFFF: ???
+
+https://bugzilla.gnome.org/show_bug.cgi?id=649497
+---
+diff --git a/src/st/st-private.c b/src/st/st-private.c
+index d0aa89b..51798a1 100644
+--- a/src/st/st-private.c
++++ b/src/st/st-private.c
+@@ -746,7 +746,7 @@ _st_create_shadow_cairo_pattern (StShadow *shadow_spec,
+ (height_out - height_in) / 2.0);
+ cairo_pattern_set_matrix (dst_pattern, &shadow_matrix);
+
+- return dst_pattern;
++ goto out;
+ }
+
+ /* Read all the code from the cairo_pattern_set_matrix call
+@@ -784,6 +784,8 @@ _st_create_shadow_cairo_pattern (StShadow *shadow_spec,
+
+ cairo_pattern_set_matrix (dst_pattern, &shadow_matrix);
+
++ out:
++ g_free (pixels_out);
+ return dst_pattern;
+ }
+
+--
+cgit v0.9