[gnome-software/gnome-3-26] odrs: Fix critical errors for components with compat-ids
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-26] odrs: Fix critical errors for components with compat-ids
- Date: Tue, 10 Oct 2017 11:51:41 +0000 (UTC)
commit 4748705467b17ed4c8ae24027e4d4996b5750d1d
Author: Richard Hughes <richard hughsie com>
Date: Mon Oct 9 21:50:05 2017 +0100
odrs: Fix critical errors for components with compat-ids
Randomly, json_builder_add_value() takes the value ownership.
plugins/odrs/gs-plugin-odrs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/odrs/gs-plugin-odrs.c b/plugins/odrs/gs-plugin-odrs.c
index 328cd42..ef10395 100644
--- a/plugins/odrs/gs-plugin-odrs.c
+++ b/plugins/odrs/gs-plugin-odrs.c
@@ -584,6 +584,7 @@ static GPtrArray *
gs_plugin_odrs_fetch_for_app (GsPlugin *plugin, GsApp *app, GError **error)
{
GsPluginData *priv = gs_plugin_get_data (plugin);
+ JsonNode *json_compat_ids;
const gchar *version;
guint status_code;
g_autofree gchar *cachefn_basename = NULL;
@@ -594,7 +595,6 @@ gs_plugin_odrs_fetch_for_app (GsPlugin *plugin, GsApp *app, GError **error)
g_autoptr(GPtrArray) reviews = NULL;
g_autoptr(JsonBuilder) builder = NULL;
g_autoptr(JsonGenerator) json_generator = NULL;
- g_autoptr(JsonNode) json_compat_ids = NULL;
g_autoptr(JsonNode) json_root = NULL;
g_autoptr(SoupMessage) msg = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]