diff options
author | Richard Hughes <richard@hughsie.com> | 2015-09-15 10:49:08 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2015-09-15 10:49:08 +0100 |
commit | 01ad095232da16602bdae1d7eba4ee5df1cc6c93 (patch) | |
tree | b48c10c5910403ef6580619982c70a9dbda0424e /client | |
parent | 4f8f2429b3dca92e84f9ba60c820cde2189d2a00 (diff) | |
download | appstream-glib-01ad095232da16602bdae1d7eba4ee5df1cc6c93.tar.gz |
trivial: Fix --enable-ostree build
Diffstat (limited to 'client')
-rw-r--r-- | client/as-builder.c | 3 |
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, |