Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma PulseAudio Applet
Commits
02c07a57
Commit
02c07a57
authored
Feb 19, 2021
by
David Edmundson
Browse files
Unref stream after unsetting callbacks
CCBUG: 432482
(cherry picked from commit
f720efe7
)
parent
61702c46
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/volumemonitor.cpp
View file @
02c07a57
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment