From 16cb4286b1111da3cc79973c6688c2a00a6f01d7 Mon Sep 17 00:00:00 2001 From: Lewis Lakerink Date: Tue, 20 Oct 2020 18:56:37 +1100 Subject: [PATCH] Fix pipewire stream double free --- screencast/pipewirestream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/screencast/pipewirestream.cpp b/screencast/pipewirestream.cpp index 44f92c5eda..2cae16e2e2 100644 --- a/screencast/pipewirestream.cpp +++ b/screencast/pipewirestream.cpp @@ -253,6 +253,7 @@ bool PipeWireStream::createStream() if (pw_stream_connect(pwStream, PW_DIRECTION_OUTPUT, SPA_ID_INVALID, flags, ¶m, 1) != 0) { qCWarning(KWIN_SCREENCAST) << "Could not connect to stream"; pw_stream_destroy(pwStream); + pwStream = nullptr; return false; }