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
This commit is contained in:
David Svensson Fors 2017-06-21 09:47:12 +02:00 committed by Wim Taymans
parent 879057c565
commit bef8d91d72

View file

@ -327,6 +327,8 @@ void pw_stream_destroy(struct pw_stream *stream)
if (stream->name)
free(stream->name);
close(impl->rtwritefd);
free(impl);
}