From 700b86814b7533a92d29f02109381c56f3a820aa Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Tue, 3 Jul 2012 17:52:36 +0530 Subject: [PATCH] role-cork: Fix incorrect check at deinitialisation time --- src/modules/module-role-cork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-role-cork.c b/src/modules/module-role-cork.c index 8d003da0f..8306987e4 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);