From bef8d91d7221ae36ed039e9d7880ca756ea195e8 Mon Sep 17 00:00:00 2001 From: David Svensson Fors Date: Wed, 21 Jun 2017 09:47:12 +0200 Subject: [PATCH] stream: close rtwritefd rtreadfd is added as IO in the context loop, and closed when that loop is torn down. But rtwritefd is only used by the stream, and needs to be closed when the stream is destroyed. Change-Id: I7cdd623290933b2aff861003fdf1f390ff566a49 --- pipewire/client/stream.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pipewire/client/stream.c b/pipewire/client/stream.c index 4920bd5d8..97e49c6af 100644 --- a/pipewire/client/stream.c +++ b/pipewire/client/stream.c @@ -327,6 +327,8 @@ void pw_stream_destroy(struct pw_stream *stream) if (stream->name) free(stream->name); + close(impl->rtwritefd); + free(impl); }