summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2012-07-03 17:52:36 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2012-07-03 18:19:16 +0530
commit700b86814b7533a92d29f02109381c56f3a820aa (patch)
tree6d53f4c89f15ebe233138fd48587496193ff362f
parent8b7d613813fee38d6d9fbf68406d6ba97c29d8bb (diff)
role-cork: Fix incorrect check at deinitialisation time
-rw-r--r--src/modules/module-role-cork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-role-cork.c b/src/modules/module-role-cork.c
index 8d003da0..8306987e 100644
--- a/src/modules/module-role-cork.c
+++ b/src/modules/module-role-cork.c
@@ -289,7 +289,7 @@ void pa__done(pa_module *m) {
pa_xfree(role);
pa_idxset_free(u->trigger_roles, NULL, NULL);
}
- if (u->trigger_roles) {
+ if (u->cork_roles) {
while ((role = pa_idxset_steal_first(u->cork_roles, NULL)))
pa_xfree(role);
pa_idxset_free(u->cork_roles, NULL, NULL);