summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-07-28 16:13:17 +0200
committerBastien Nocera <hadess@hadess.net>2020-07-28 16:13:17 +0200
commit58b78cda4584296c185f753536b0f0ae07d40e5e (patch)
tree5017c227fd179431f497c3d9a059c39204eca0d2
parent9b61d87f3b3550134a49b7f54367b146f8e03710 (diff)
downloadgrilo-58b78cda4584296c185f753536b0f0ae07d40e5e.tar.gz
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
-rw-r--r--src/grl-registry.c2
1 files changed, 1 insertions, 1 deletions
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;