summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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;
+ }