LADI
/
spa
1
Fork 0

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:
Wim Taymans 2023-05-12 13:30:32 +02:00
parent 741037f1ae
commit 8b18cbdce1
1 changed files with 2 additions and 0 deletions

View File

@ -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);