[gnome-software] Plug a ref leak



commit 89823d87689e1ab6df60aa8cc0a36ac9959c4c95
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Sep 3 20:10:08 2013 -0400

    Plug a ref leak

 src/gs-shell-category.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-category.c b/src/gs-shell-category.c
index 294c987..8f9ce96 100644
--- a/src/gs-shell-category.c
+++ b/src/gs-shell-category.c
@@ -50,7 +50,7 @@ gs_shell_category_refresh (GsShellCategory *shell)
         gtk_widget_show (widget);
         widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "application_details_header"));
         gtk_widget_show (widget);
-        category = g_object_ref (priv->category);
+        category = priv->category;
         if (gs_category_get_parent (category))
                 category = gs_category_get_parent (category);
         gtk_label_set_label (GTK_LABEL (widget), gs_category_get_name (category));


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