Fix pipewire stream double free
This commit is contained in:
parent
f782c1f7ee
commit
16cb4286b1
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue