mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-23 08:56:47 -05:00
media-session: cleanup some objects
This commit is contained in:
parent
d3db9d12bc
commit
437b97f160
1 changed files with 8 additions and 2 deletions
|
|
@ -1680,8 +1680,14 @@ static void session_shutdown(struct impl *impl)
|
||||||
|
|
||||||
sm_media_session_emit_destroy(impl);
|
sm_media_session_emit_destroy(impl);
|
||||||
|
|
||||||
pw_proxy_destroy((struct pw_proxy*)impl->registry);
|
if (impl->registry)
|
||||||
pw_core_disconnect(impl->policy_core);
|
pw_proxy_destroy((struct pw_proxy*)impl->registry);
|
||||||
|
if (impl->policy_core)
|
||||||
|
pw_core_disconnect(impl->policy_core);
|
||||||
|
if (impl->client_session)
|
||||||
|
pw_proxy_destroy((struct pw_proxy*)impl->client_session);
|
||||||
|
if (impl->monitor_core)
|
||||||
|
pw_core_disconnect(impl->monitor_core);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue