summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2012-06-13 16:29:35 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2012-07-03 18:19:08 +0530
commit8b7d613813fee38d6d9fbf68406d6ba97c29d8bb (patch)
tree7dda60bfc4a8a84b158e8a363e26fc5b15ce1d61
parentea99b0fd2af1a79a2c7aa32fd982695867aef53a (diff)
role-cork: Fix a minor leak
-rw-r--r--src/modules/module-role-cork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/module-role-cork.c b/src/modules/module-role-cork.c
index a4270a4f..8d003da0 100644
--- a/src/modules/module-role-cork.c
+++ b/src/modules/module-role-cork.c
@@ -227,7 +227,7 @@ int pa__init(pa_module *m) {
char *n = NULL;
while ((n = pa_split(roles, ",", &split_state)))
if (n[0] != '\0')
- pa_idxset_put(u->trigger_roles, pa_xstrdup(n), NULL);
+ pa_idxset_put(u->trigger_roles, n, NULL);
}
if (pa_idxset_isempty(u->trigger_roles)) {
pa_log_debug("Using role 'phone' as trigger role.");
@@ -241,7 +241,7 @@ int pa__init(pa_module *m) {
char *n = NULL;
while ((n = pa_split(roles, ",", &split_state)))
if (n[0] != '\0')
- pa_idxset_put(u->cork_roles, pa_xstrdup(n), NULL);
+ pa_idxset_put(u->cork_roles, n, NULL);
}
if (pa_idxset_isempty(u->cork_roles)) {
pa_log_debug("Using roles 'music' and 'video' as cork roles.");