Fix pipewire stream double free

icc-effect-5.26.4
Lewis Lakerink 2020-10-20 18:56:37 +11:00
parent f782c1f7ee
commit 16cb4286b1
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}