From dcb28aad2ab82566cd49b442766ed1aaf518ca84 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 3 Nov 2013 12:10:00 -0500 Subject: [PATCH] app-system: Fix the keys in the id_to_app table The ID that's passed to us isn't usable as a key to store, as it's probably junk after the method returns. Use the app's storage for the ID instead. --- src/shell-app-system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell-app-system.c b/src/shell-app-system.c index d9e39e912..56636fffd 100644 --- a/src/shell-app-system.c +++ b/src/shell-app-system.c @@ -141,7 +141,7 @@ shell_app_system_lookup_app (ShellAppSystem *self, return NULL; app = _shell_app_new (info); - g_hash_table_insert (priv->id_to_app, (char *) id, app); + g_hash_table_insert (priv->id_to_app, shell_app_get_id (id), app); return app; }