summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2013-10-08 23:33:08 +0530
committerArun Raghavan <git@arunraghavan.net>2015-03-07 08:46:29 +0530
commit38eaec68b8db6ec92a51baf0c36d7a401691ca62 (patch)
tree8b20c459439d5f20aedc886c476c9182a8d362c9
parent2f14c1ec746ded9299726c362823fa7feb5caf07 (diff)
alsa: Fix segfault with synthesized pa_alsa_pathsb2g
pa_alsa_path_synthesize() generates a path without a proplist, causing a crash at free time.
-rw-r--r--src/modules/alsa/alsa-mixer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c
index 9227cea7e..0863eb2d9 100644
--- a/src/modules/alsa/alsa-mixer.c
+++ b/src/modules/alsa/alsa-mixer.c
@@ -570,7 +570,8 @@ void pa_alsa_path_free(pa_alsa_path *p) {
setting_free(s);
}
- pa_proplist_free(p->proplist);
+ if (p->proplist)
+ pa_proplist_free(p->proplist);
pa_xfree(p->name);
pa_xfree(p->description);
pa_xfree(p->description_key);