Commit 02c07a57 authored by David Edmundson's avatar David Edmundson
Browse files

Unref stream after unsetting callbacks

CCBUG: 432482


(cherry picked from commit f720efe7)
parent 61702c46
......@@ -70,10 +70,10 @@ void QPulseAudio::VolumeMonitor::setTarget(QPulseAudio::VolumeObject* target)
}
if (m_stream) {
pa_stream_disconnect(m_stream);
pa_stream_unref(m_stream);
pa_stream_set_read_callback(m_stream, nullptr, nullptr);
pa_stream_set_suspended_callback(m_stream, nullptr, nullptr);
pa_stream_disconnect(m_stream);
pa_stream_unref(m_stream);
m_stream = nullptr;
Q_EMIT availableChanged();
}
......
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