Fix reference counting for icons

This commit is contained in:
Matthias Clasen
2010-11-24 16:09:55 -05:00
parent 183d75b812
commit 47308db2ba

View File

@ -537,6 +537,7 @@ gtk_app_chooser_widget_add_section (GtkAppChooserWidget *self,
g_app_info_get_description (app) : ""); g_app_info_get_description (app) : "");
icon = g_app_info_get_icon (app); icon = g_app_info_get_icon (app);
unref_icon = FALSE;
if (icon == NULL) if (icon == NULL)
{ {
icon = g_themed_icon_new ("application-x-executable"); icon = g_themed_icon_new ("application-x-executable");
@ -560,8 +561,6 @@ gtk_app_chooser_widget_add_section (GtkAppChooserWidget *self,
g_free (app_string); g_free (app_string);
if (unref_icon) if (unref_icon)
g_object_unref (icon); g_object_unref (icon);
unref_icon = FALSE;
} }
g_free (bold_string); g_free (bold_string);