Commit f720efe7 authored by David Edmundson's avatar David Edmundson
Browse files

Unref stream after unsetting callbacks

CCBUG: 432482
parent 48037d71
......@@ -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();
}
......
Supports Markdown
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