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
|
@ -3848,6 +3848,8 @@ int jack_client_close (jack_client_t *client)
|
|||
pw_core_disconnect(c->core);
|
||||
}
|
||||
|
||||
globals.thread_utils = pw_thread_utils_get();
|
||||
|
||||
if (c->context.context)
|
||||
pw_context_destroy(c->context.context);
|
||||
|
||||
|
|
Loading…
Reference in New Issue