diff --git a/src/modules/module-loopback.c b/src/modules/module-loopback.c index 86d9d8139..cf0c2f81e 100644 --- a/src/modules/module-loopback.c +++ b/src/modules/module-loopback.c @@ -404,6 +404,12 @@ static const struct pw_proxy_events core_proxy_events = { static void impl_destroy(struct impl *impl) { + /* disconnect both streams before destroying any of them */ + if (impl->capture) + pw_stream_disconnect(impl->capture); + if (impl->playback) + pw_stream_disconnect(impl->playback); + if (impl->capture) pw_stream_destroy(impl->capture); if (impl->playback)