mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse: clear global on the stream when destroyed
This commit is contained in:
parent
969b7b6287
commit
421a15939d
1 changed files with 3 additions and 2 deletions
|
|
@ -50,9 +50,10 @@ static void global_free(pa_context *c, struct global *g)
|
||||||
|
|
||||||
if (g->ginfo && g->ginfo->destroy)
|
if (g->ginfo && g->ginfo->destroy)
|
||||||
g->ginfo->destroy(g);
|
g->ginfo->destroy(g);
|
||||||
if (g->proxy) {
|
if (g->stream)
|
||||||
|
g->stream->global = NULL;
|
||||||
|
if (g->proxy)
|
||||||
pw_proxy_destroy(g->proxy);
|
pw_proxy_destroy(g->proxy);
|
||||||
}
|
|
||||||
if (g->props)
|
if (g->props)
|
||||||
pw_properties_free(g->props);
|
pw_properties_free(g->props);
|
||||||
free(g->type);
|
free(g->type);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue