mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
module-rt: first destroy the loop and then rtkit
Or else we might still try to use the rtkit in the thread. See #3357
This commit is contained in:
parent
163fde0a69
commit
8d1b3f6f48
1 changed files with 4 additions and 4 deletions
|
|
@ -491,10 +491,10 @@ static void module_destroy(void *data)
|
|||
spa_hook_remove(&impl->module_listener);
|
||||
|
||||
#ifdef HAVE_DBUS
|
||||
if (impl->rtkit_bus)
|
||||
pw_rtkit_bus_free(impl->rtkit_bus);
|
||||
if (impl->thread_loop)
|
||||
pw_thread_loop_destroy(impl->thread_loop);
|
||||
if (impl->rtkit_bus)
|
||||
pw_rtkit_bus_free(impl->rtkit_bus);
|
||||
#endif
|
||||
|
||||
free(impl);
|
||||
|
|
@ -1114,10 +1114,10 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
|
||||
error:
|
||||
#ifdef HAVE_DBUS
|
||||
if (impl->rtkit_bus)
|
||||
pw_rtkit_bus_free(impl->rtkit_bus);
|
||||
if (impl->thread_loop)
|
||||
pw_thread_loop_destroy(impl->thread_loop);
|
||||
if (impl->rtkit_bus)
|
||||
pw_rtkit_bus_free(impl->rtkit_bus);
|
||||
#endif
|
||||
free(impl);
|
||||
done:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue