[gnome-software] snap: Fix crash when fail to use icon from cache
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] snap: Fix crash when fail to use icon from cache
- Date: Wed, 12 Jul 2017 03:39:31 +0000 (UTC)
commit 52b5e3240e7d30e1fb25358a1cc5f029f35dbbfd
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Jul 12 15:39:13 2017 +1200
snap: Fix crash when fail to use icon from cache
plugins/snap/gs-plugin-snap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 3a8f9d3..d331a8c 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -442,7 +442,7 @@ load_icon (GsPlugin *plugin, GsApp *app, const gchar *icon_url, GCancellable *ca
if (g_file_get_contents (cache_fn, &data, &data_len, &local_error) &&
gs_plugin_snap_set_app_pixbuf_from_data (app,
data, data_len,
- error))
+ &local_error))
return TRUE;
g_warning ("Failed to load cached icon: %s", local_error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]