[gnome-software] trivial: Use gs_plugin_add_app() in more places



commit 58f3e5511622c3bd0f059ac39dfc11a63ee5b1f5
Author: Richard Hughes <richard hughsie com>
Date:   Tue Oct 8 12:02:25 2013 +0100

    trivial: Use gs_plugin_add_app() in more places

 src/gs-plugin-loader.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 9c38332..be9e915 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -167,12 +167,12 @@ gs_plugin_loader_list_uniq (GsPluginLoader *plugin_loader, GList *list)
                app = GS_APP (l->data);
                id = gs_app_get_id (app);
                if (id == NULL) {
-                       list_new = g_list_prepend (list_new, g_object_ref (app));
+                       gs_plugin_add_app (&list_new, app);
                        continue;
                }
                found = g_hash_table_lookup (hash, id);
                if (found == NULL) {
-                       list_new = g_list_prepend (list_new, g_object_ref (app));
+                       gs_plugin_add_app (&list_new, app);
                        g_hash_table_insert (hash, (gpointer) id, GUINT_TO_POINTER (1));
                        continue;
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]