summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Jezak <josejx@gentoo.org>2005-02-19 04:38:36 +0000
committerJoseph Jezak <josejx@gentoo.org>2005-02-19 04:38:36 +0000
commit97aec3cc72d233fb2f6fc8e0a5ec47338275ae37 (patch)
tree39a3e13723ab43caa26fc528533ce55cd242d176 /app-laptop/pbbuttonsd/files/alsa-segfault-0.6.7.patch
parentStable ppc-macos (diff)
downloadhistorical-97aec3cc72d233fb2f6fc8e0a5ec47338275ae37.tar.gz
historical-97aec3cc72d233fb2f6fc8e0a5ec47338275ae37.tar.bz2
historical-97aec3cc72d233fb2f6fc8e0a5ec47338275ae37.zip
Version bump for pbbuttonsd along with patch to fix ALSA segfault. See bug #79629.
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'app-laptop/pbbuttonsd/files/alsa-segfault-0.6.7.patch')
-rw-r--r--app-laptop/pbbuttonsd/files/alsa-segfault-0.6.7.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/app-laptop/pbbuttonsd/files/alsa-segfault-0.6.7.patch b/app-laptop/pbbuttonsd/files/alsa-segfault-0.6.7.patch
new file mode 100644
index 000000000000..c854ec8ab5be
--- /dev/null
+++ b/app-laptop/pbbuttonsd/files/alsa-segfault-0.6.7.patch
@@ -0,0 +1,21 @@
+--- src/module_alsamixer.c 2005-01-24 19:50:37.000000000 +0100
++++ src/module_alsamixer.c 2005-01-27 16:24:18.000000000 +0100
+@@ -434,9 +434,15 @@
+ alsamixer_exit ()
+ {
+ struct moddata_alsamixer *base = &modbase_alsamixer;
+- free (base->elements);
+- base->elements = NULL;
+- snd_mixer_free (base->mixer);
++
++ if (base->elements) {
++ free (base->elements);
++ base->elements = NULL;
++ }
++
++ if (base->mixer)
++ snd_mixer_free (base->mixer);
++
+ base->init_complete = 0;
+ return 0;
+ }