[gnome-software] trivial: Fix make check
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix make check
- Date: Fri, 12 Feb 2016 14:09:50 +0000 (UTC)
commit f6137d31d417c0f8696ce3d66b88643126012ba3
Author: Richard Hughes <richard hughsie com>
Date: Fri Feb 12 13:31:44 2016 +0000
trivial: Fix make check
src/Makefile.am | 1 +
src/gs-plugin-loader.c | 2 +-
src/plugins/gs-plugin-xdg-app-reviews.c | 2 --
3 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index dfe3aa3..8ee862f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -293,6 +293,7 @@ gs_self_test_SOURCES = \
gs_self_test_LDADD = \
$(APPSTREAM_LIBS) \
+ $(SOUP_LIBS) \
$(GLIB_LIBS) \
$(GTK_LIBS)
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 9432c3e..af21a64 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -3359,6 +3359,7 @@ gs_plugin_loader_dispose (GObject *object)
g_source_remove (priv->updates_changed_id);
priv->updates_changed_id = 0;
}
+ g_clear_object (&priv->soup_session);
g_clear_object (&priv->profile);
g_clear_object (&priv->settings);
g_clear_pointer (&priv->app_cache, g_hash_table_unref);
@@ -3380,7 +3381,6 @@ gs_plugin_loader_finalize (GObject *object)
g_strfreev (priv->compatible_projects);
g_free (priv->location);
g_free (priv->locale);
- g_object_unref (priv->soup_session);
g_mutex_clear (&priv->pending_apps_mutex);
g_mutex_clear (&priv->app_cache_mutex);
diff --git a/src/plugins/gs-plugin-xdg-app-reviews.c b/src/plugins/gs-plugin-xdg-app-reviews.c
index e3a1f02..8b7eaad 100644
--- a/src/plugins/gs-plugin-xdg-app-reviews.c
+++ b/src/plugins/gs-plugin-xdg-app-reviews.c
@@ -70,7 +70,6 @@ gs_plugin_initialize (GsPlugin *plugin)
{
g_autoptr(GError) error = NULL;
plugin->priv = GS_PLUGIN_GET_PRIVATE (GsPluginPrivate);
- plugin->soup_session = soup_session_new_with_options (SOUP_SESSION_USER_AGENT, gs_user_agent (),
NULL);
plugin->priv->settings = g_settings_new ("org.gnome.software");
plugin->priv->review_server = g_settings_get_string (plugin->priv->settings,
"review-server");
@@ -112,7 +111,6 @@ gs_plugin_destroy (GsPlugin *plugin)
{
g_free (plugin->priv->user_hash);
g_free (plugin->priv->distro);
- g_object_unref (plugin->soup_session);
g_object_unref (plugin->priv->settings);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]