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
f720efe7
Commit
f720efe7
authored
Feb 19, 2021
by
David Edmundson
Browse files
Unref stream after unsetting callbacks
CCBUG: 432482
parent
48037d71
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/volumemonitor.cpp
View file @
f720efe7
...
...
@@ -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
();
}
...
...
David Edmundson
@davidedmundson
mentioned in commit
02c07a57
·
Feb 19, 2021
mentioned in commit
02c07a57
mentioned in commit 02c07a571651aaa22683dc9b6f08aee5ded8403b
Toggle commit list
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