mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
simple: call pa_context_disconnect() just to be sure
This commit is contained in:
parent
a73c615b74
commit
53fcf3add0
1 changed files with 3 additions and 1 deletions
|
|
@ -261,8 +261,10 @@ void pa_simple_free(pa_simple *s) {
|
|||
if (s->stream)
|
||||
pa_stream_unref(s->stream);
|
||||
|
||||
if (s->context)
|
||||
if (s->context) {
|
||||
pa_context_disconnect(s->context);
|
||||
pa_context_unref(s->context);
|
||||
}
|
||||
|
||||
if (s->mainloop)
|
||||
pa_threaded_mainloop_free(s->mainloop);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue