From 708ad85dd4cd3cc357590e6ece4499609f6df051 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 30 Jul 2020 21:16:34 +1000 Subject: [PATCH] util: remove the source from the removed_list on destroy Signed-off-by: Peter Hutterer --- src/util-sources.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util-sources.c b/src/util-sources.c index 44abe51..7263541 100644 --- a/src/util-sources.c +++ b/src/util-sources.c @@ -182,6 +182,7 @@ sink_dispatch(struct sink *sink) struct source *s, *tmp; list_for_each_safe(s, tmp, &sink->sources_removed, link) { + list_remove(&s->link); source_unref(s); }