pulse: clear global on the stream when destroyed

This commit is contained in:
Wim Taymans 2020-10-13 10:19:02 +02:00
parent 969b7b6287
commit 421a15939d

View file

@ -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);