summaryrefslogtreecommitdiff
path: root/gtk/gtkappchooserwidget.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-11-24 16:09:55 -0500
committerMatthias Clasen <mclasen@redhat.com>2010-11-24 16:09:55 -0500
commit47308db2ba6fdf97fc4992654755ba1dbeb0bc6c (patch)
tree338d80854a2428d363a72421093d1b844d1e7689 /gtk/gtkappchooserwidget.c
parent183d75b812e78b7a85eb6ad7fc3c624b3cd7e17a (diff)
downloadgtk+-47308db2ba6fdf97fc4992654755ba1dbeb0bc6c.tar.gz
Fix reference counting for icons
Diffstat (limited to 'gtk/gtkappchooserwidget.c')
-rw-r--r--gtk/gtkappchooserwidget.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c
index 22c9652a36..e80727358d 100644
--- a/gtk/gtkappchooserwidget.c
+++ b/gtk/gtkappchooserwidget.c
@@ -537,6 +537,7 @@ gtk_app_chooser_widget_add_section (GtkAppChooserWidget *self,
g_app_info_get_description (app) : "");
icon = g_app_info_get_icon (app);
+ unref_icon = FALSE;
if (icon == NULL)
{
icon = g_themed_icon_new ("application-x-executable");
@@ -560,8 +561,6 @@ gtk_app_chooser_widget_add_section (GtkAppChooserWidget *self,
g_free (app_string);
if (unref_icon)
g_object_unref (icon);
-
- unref_icon = FALSE;
}
g_free (bold_string);