[gnome-software] odrs: Fix critical errors for components with compat-ids



commit 5454136385e31b7dd2985ef36a913980d96c0cf0
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 584b4b0..81fab77 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]