Commit 16cb4286 authored by Lewis Lakerink's avatar Lewis Lakerink

Fix pipewire stream double free

parent f782c1f7
......@@ -253,6 +253,7 @@ bool PipeWireStream::createStream()
if (pw_stream_connect(pwStream, PW_DIRECTION_OUTPUT, SPA_ID_INVALID, flags, &param, 1) != 0) {
qCWarning(KWIN_SCREENCAST) << "Could not connect to stream";
pw_stream_destroy(pwStream);
pwStream = nullptr;
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment