summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-09-15 10:49:08 +0100
committerRichard Hughes <richard@hughsie.com>2015-09-15 10:49:08 +0100
commit01ad095232da16602bdae1d7eba4ee5df1cc6c93 (patch)
treeb48c10c5910403ef6580619982c70a9dbda0424e
parent4f8f2429b3dca92e84f9ba60c820cde2189d2a00 (diff)
downloadappstream-glib-01ad095232da16602bdae1d7eba4ee5df1cc6c93.tar.gz
trivial: Fix --enable-ostree build
-rw-r--r--client/as-builder.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/as-builder.c b/client/as-builder.c
index 828bf59..ba1affc 100644
--- a/client/as-builder.c
+++ b/client/as-builder.c
@@ -72,7 +72,7 @@ as_builder_setup_ostree (AsbContext *ctx, const gchar *ostree_repo, GError **err
gpointer value;
g_autoptr(GHashTable) refs = NULL;
g_autoptr(GFile) file = NULL;
- g_autoptr(OstreeRepo) repo = NULL;
+ OstreeRepo *repo = NULL;
/* load repo */
file = g_file_new_for_path (ostree_repo);
@@ -107,6 +107,7 @@ as_builder_setup_ostree (AsbContext *ctx, const gchar *ostree_repo, GError **err
return FALSE;
asb_context_add_package (ctx, pkg);
}
+ g_object_unref (repo);
return TRUE;
#else
g_set_error_literal (error,