[gnome-software] Fix potential crash when icons are missing



commit 33e099bd18a51b50348d5ed38b2a620eb159b669
Author: Richard Hughes <richard hughsie com>
Date:   Wed Apr 27 19:52:04 2016 +0100

    Fix potential crash when icons are missing
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=764921

 src/plugins/gs-appstream.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-appstream.c b/src/plugins/gs-appstream.c
index 82451ad..c1f8c54 100644
--- a/src/plugins/gs-appstream.c
+++ b/src/plugins/gs-appstream.c
@@ -90,7 +90,7 @@ gs_refine_item_pixbuf (GsPlugin *plugin, GsApp *app, AsApp *item)
                        icon = as_app_get_icon_for_size (item, 64, 64);
                if (icon == NULL) {
                        g_warning ("failed to find cached icon %s",
-                                  as_icon_get_name (icon));
+                                  as_app_get_id (item));
                        return;
                }
                if (!as_icon_load (icon, AS_ICON_LOAD_FLAG_SEARCH_SIZE, &error)) {


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