mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
pulse-server: properly unload modules
Instead of simply calling `module_free()`, actually unload the modules when the pulse server context is being freed.
This commit is contained in:
parent
a79bb60754
commit
f181210b29
1 changed files with 3 additions and 3 deletions
|
|
@ -5074,10 +5074,10 @@ static int impl_free_sample(void *item, void *data)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int impl_free_module(void *item, void *data)
|
static int impl_unload_module(void *item, void *data)
|
||||||
{
|
{
|
||||||
struct module *m = item;
|
struct module *m = item;
|
||||||
module_free(m);
|
module_unload(m);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -5099,7 +5099,7 @@ static void impl_clear(struct impl *impl)
|
||||||
pw_map_for_each(&impl->samples, impl_free_sample, impl);
|
pw_map_for_each(&impl->samples, impl_free_sample, impl);
|
||||||
pw_map_clear(&impl->samples);
|
pw_map_clear(&impl->samples);
|
||||||
|
|
||||||
pw_map_for_each(&impl->modules, impl_free_module, impl);
|
pw_map_for_each(&impl->modules, impl_unload_module, impl);
|
||||||
pw_map_clear(&impl->modules);
|
pw_map_clear(&impl->modules);
|
||||||
|
|
||||||
#if HAVE_DBUS
|
#if HAVE_DBUS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue