mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
jack: stop the thread loop before we destroy objects
This commit is contained in:
parent
253e304124
commit
814b74265c
1 changed files with 2 additions and 1 deletions
|
|
@ -2391,6 +2391,8 @@ int jack_client_close (jack_client_t *client)
|
|||
|
||||
res = jack_deactivate(client);
|
||||
|
||||
pw_thread_loop_stop(c->context.loop);
|
||||
|
||||
if (c->registry)
|
||||
pw_proxy_destroy((struct pw_proxy*)c->registry);
|
||||
if (c->metadata->proxy)
|
||||
|
|
@ -2398,7 +2400,6 @@ int jack_client_close (jack_client_t *client)
|
|||
pw_core_disconnect(c->core);
|
||||
pw_context_destroy(c->context.context);
|
||||
|
||||
pw_thread_loop_stop(c->context.loop);
|
||||
pw_thread_loop_destroy(c->context.loop);
|
||||
|
||||
pw_log_debug(NAME" %p: free", client);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue