mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
parent
47ab075895
commit
f0a686e784
1 changed files with 6 additions and 9 deletions
|
|
@ -418,15 +418,6 @@ void pw_deinit(void)
|
||||||
struct registry *registry = &global_registry;
|
struct registry *registry = &global_registry;
|
||||||
struct plugin *p;
|
struct plugin *p;
|
||||||
|
|
||||||
support->plugin_dir = NULL;
|
|
||||||
if (support->categories)
|
|
||||||
pw_free_strv(support->categories);
|
|
||||||
support->categories = NULL;
|
|
||||||
support->support_lib = NULL;
|
|
||||||
support->registry = NULL;
|
|
||||||
|
|
||||||
pw_log_set(NULL);
|
|
||||||
|
|
||||||
spa_list_consume(p, ®istry->plugins, link) {
|
spa_list_consume(p, ®istry->plugins, link) {
|
||||||
struct handle *h;
|
struct handle *h;
|
||||||
p->ref++;
|
p->ref++;
|
||||||
|
|
@ -434,6 +425,12 @@ void pw_deinit(void)
|
||||||
unref_handle(h);
|
unref_handle(h);
|
||||||
unref_plugin(p);
|
unref_plugin(p);
|
||||||
}
|
}
|
||||||
|
if (support->categories)
|
||||||
|
pw_free_strv(support->categories);
|
||||||
|
pw_log_set(NULL);
|
||||||
|
spa_zero(global_support);
|
||||||
|
spa_zero(global_registry);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Check if a debug category is enabled
|
/** Check if a debug category is enabled
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue