mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
http: fix segfault on connection termination
This commit is contained in:
parent
86caf4520f
commit
21ab720dd1
1 changed files with 4 additions and 1 deletions
|
|
@ -111,6 +111,7 @@ static void connection_unlink(struct connection *c) {
|
|||
|
||||
if (c->source_output) {
|
||||
pa_source_output_unlink(c->source_output);
|
||||
c->source_output->userdata = NULL;
|
||||
pa_source_output_unref(c->source_output);
|
||||
}
|
||||
|
||||
|
|
@ -190,7 +191,9 @@ static int source_output_process_msg(pa_msgobject *m, int code, void *userdata,
|
|||
struct connection *c;
|
||||
|
||||
pa_source_output_assert_ref(o);
|
||||
pa_assert_se(c = o->userdata);
|
||||
|
||||
if (!(c = o->userdata))
|
||||
return -1;
|
||||
|
||||
switch (code) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue