diff --git a/src/plugins/pipewireout/PipeWireOut.cpp b/src/plugins/pipewireout/PipeWireOut.cpp index 498e7dd3b..a48956303 100644 --- a/src/plugins/pipewireout/PipeWireOut.cpp +++ b/src/plugins/pipewireout/PipeWireOut.cpp @@ -404,6 +404,10 @@ bool PipeWireOut::StartPipeWire(IBuffer* buffer) { } cleanup: + if (this->pwStream) { + pw_stream_destroy(this->pwStream); + this->pwStream = nullptr; + } pw_thread_loop_unlock(this->pwThreadLoop); ::debug->Error(TAG, "stream not initialized"); this->StopPipeWire();