[gnome-software/gnome-3-22] snap: Fix crash when fail to use icon from cache



commit 09f89d76da3c2f68f9b5e9bc51ca1fb6b21d551a
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 4749513..0dec8cd 100644
--- a/src/plugins/gs-plugin-snap.c
+++ b/src/plugins/gs-plugin-snap.c
@@ -310,7 +310,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]