From 79a6e307ec4e97172966036381cdbcb28ce81e14 Mon Sep 17 00:00:00 2001 From: Marinus Schraal Date: Wed, 15 Jul 2020 09:32:51 +0200 Subject: registry: Copy plugin list content Fixes: #141 --- src/grl-registry.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- cgit v1.2.1