From 58b78cda4584296c185f753536b0f0ae07d40e5e Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 28 Jul 2020 16:13:17 +0200 Subject: registry: Fix crash when using get_plugins() from bindings grl_registry_get_plugins() is supposed to return a GList of GrlPlugin but sent back a GList of strings when one asked for all the plugins, as it returned the keys instead of the values from the plugins hashtable. Closes: #141 --- src/grl-registry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grl-registry.c b/src/grl-registry.c index f4a3ed1..12e0031 100644 --- a/src/grl-registry.c +++ b/src/grl-registry.c @@ -1708,7 +1708,7 @@ grl_registry_get_plugins (GrlRegistry *registry, } } } else { - plugin_list = g_hash_table_get_keys (registry->priv->plugins); + plugin_list = g_hash_table_get_values (registry->priv->plugins); } return plugin_list; -- cgit v1.2.1