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



commit 399bd3939b58bd9007471ac22cc778f31284feb0
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 2578a83..b0664fd 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -342,7 +342,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]