[gnome-software] trivial: Don't crash if there is no sample data installed
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Don't crash if there is no sample data installed
- Date: Tue, 5 Nov 2013 18:06:57 +0000 (UTC)
commit fd9a2d95d1c9503da7df27afb991ce6bfeb1d494
Author: Richard Hughes <richard hughsie com>
Date: Tue Nov 5 18:06:44 2013 +0000
trivial: Don't crash if there is no sample data installed
src/plugins/gs-plugin-appstream.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 91ea54c..26fee2e 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -425,7 +425,7 @@ gs_plugin_refine_item_pixbuf (GsPlugin *plugin, GsApp *app, AppstreamApp *item)
ret = gs_app_load_icon (app, &error);
if (!ret) {
g_warning ("falling back to searching for %s", icon_path);
- g_error_free (error);
+ g_clear_error (&error);
g_free (icon_path);
/* we are not going to be doing this forever,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]