[gnome-software] appstream plugin: Don't leak "other" category



commit c2f6c68bfa64e8e15b11a773e49af14c809ad917
Author: Kalev Lember <klember redhat com>
Date:   Fri Jun 26 20:39:16 2015 +0200

    appstream plugin: Don't leak "other" category

 src/plugins/gs-plugin-appstream.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 7ead1de..0f9f2a5 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -1040,6 +1040,7 @@ gs_plugin_add_categories_for_app (GList *list, AsApp *app)
                        if (category == NULL) {
                                category = gs_category_new (parent, "other", NULL);
                                gs_category_add_subcategory (parent, category);
+                               g_object_unref (category);
                        }
                        as_app_add_category (app, gs_category_get_id (category), -1);
                        gs_category_increment_size (category);


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