1
0
gnome-software/gnome-software-icon-crash.patch
2016-04-12 10:46:51 +00:00

27 lines
886 B
Diff

From 2911419f0d496e3f0e8708cfed75e5cecee2226b Mon Sep 17 00:00:00 2001
From: Mike Gorse <mgorse@suse.com>
Date: Mon, 11 Apr 2016 16:53:14 -0500
Subject: [PATCH] Don't crash if unable to find a cached icon
https://bugzilla.gnome.org/show_bug.cgi?id=764921
---
src/plugins/gs-appstream.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/gs-appstream.c b/src/plugins/gs-appstream.c
index 4ddd0d2..953dc7e 100644
--- a/src/plugins/gs-appstream.c
+++ b/src/plugins/gs-appstream.c
@@ -87,7 +87,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_name (item, NULL));
return;
}
if (!as_icon_load (icon, AS_ICON_LOAD_FLAG_SEARCH_SIZE, &error)) {
--
2.6.2