mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
jack: restore previous global thread_utils
When a jack client is opened, the thread_utils from the context are stored globaly. Replace this with a generic thread_utils when we close the client again to avoid referencing freed memory.
This commit is contained in:
parent
741037f1ae
commit
8b18cbdce1
1 changed files with 2 additions and 0 deletions
|
|
@ -3848,6 +3848,8 @@ int jack_client_close (jack_client_t *client)
|
||||||
pw_core_disconnect(c->core);
|
pw_core_disconnect(c->core);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
globals.thread_utils = pw_thread_utils_get();
|
||||||
|
|
||||||
if (c->context.context)
|
if (c->context.context)
|
||||||
pw_context_destroy(c->context.context);
|
pw_context_destroy(c->context.context);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue