mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
jack: fix crash on close when metadata are not available
This commit is contained in:
parent
389b4a72f8
commit
a108752514
1 changed files with 1 additions and 1 deletions
|
|
@ -2400,7 +2400,7 @@ int jack_client_close (jack_client_t *client)
|
|||
|
||||
if (c->registry)
|
||||
pw_proxy_destroy((struct pw_proxy*)c->registry);
|
||||
if (c->metadata->proxy)
|
||||
if (c->metadata && c->metadata->proxy)
|
||||
pw_proxy_destroy((struct pw_proxy*)c->metadata->proxy);
|
||||
pw_core_disconnect(c->core);
|
||||
pw_context_destroy(c->context.context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue