summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pulsecore/source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/source.c b/src/pulsecore/source.c
index 57018a2b..a30ef95a 100644
--- a/src/pulsecore/source.c
+++ b/src/pulsecore/source.c
@@ -322,7 +322,7 @@ void pa_source_unlink(pa_source *s) {
pa_idxset_remove_by_data(s->core->sources, s, NULL);
if (s->card)
- pa_idxset_remove_by_data(s->card->sinks, s, NULL);
+ pa_idxset_remove_by_data(s->card->sources, s, NULL);
while ((o = pa_idxset_first(s->outputs, NULL))) {
pa_assert(o != j);