diff options
author | Marinus Schraal <mschraal@gnome.org> | 2020-07-15 09:32:51 +0200 |
---|---|---|
committer | Marinus Schraal <mschraal@gnome.org> | 2020-07-27 16:28:55 +0200 |
commit | 79a6e307ec4e97172966036381cdbcb28ce81e14 (patch) | |
tree | 37aa8414f210e872d2e2e50cc38d427cdc44232f | |
parent | 9b61d87f3b3550134a49b7f54367b146f8e03710 (diff) | |
download | grilo-wip/mschraal/registry-get_plugins-binding-segv.tar.gz |
registry: Copy plugin list contentwip/mschraal/registry-get_plugins-binding-segv
Fixes: #141
-rw-r--r-- | src/grl-registry.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/grl-registry.c b/src/grl-registry.c index f4a3ed1..e7ba64a 100644 --- a/src/grl-registry.c +++ b/src/grl-registry.c @@ -1708,7 +1708,10 @@ grl_registry_get_plugins (GrlRegistry *registry, } } } else { - plugin_list = g_hash_table_get_keys (registry->priv->plugins); + g_hash_table_iter_init (&iter, registry->priv->plugins); + while (g_hash_table_iter_next (&iter, NULL, (gpointer *) ¤t_plugin)) { + plugin_list = g_list_prepend (plugin_list, current_plugin); + } } return plugin_list; |