[gnome-software/wip/ubuntu-3-22] 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/wip/ubuntu-3-22] snap: Fix crash when fail to use icon from cache
- Date: Wed, 12 Jul 2017 04:40:13 +0000 (UTC)
commit eae1f0cd7753a9ac1754e56ff87ee4146c91fcf4
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
src/plugins/gs-plugin-snap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-snap.c b/src/plugins/gs-plugin-snap.c
index 26d2ae3..84a20b6 100644
--- a/src/plugins/gs-plugin-snap.c
+++ b/src/plugins/gs-plugin-snap.c
@@ -344,7 +344,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]