--install: Fix double unref when --repo is not installed

export_repo is an autopr, so we have to ref it.

Closes: #86
Approved by: alexlarsson
tingping/wmclass
Alexander Larsson 2017-12-18 09:44:30 +01:00 committed by Atomic Bot
parent 0ee2315818
commit d869c778ce
1 changed files with 1 additions and 1 deletions

View File

@ -852,7 +852,7 @@ main (int argc,
export_repo = g_file_new_for_path (opt_repo);
if (opt_install && export_repo == NULL)
export_repo = builder_context_get_cache_dir (build_context);
export_repo = g_object_ref (builder_context_get_cache_dir (build_context));
g_print ("Exporting %s to repo\n", builder_manifest_get_id (manifest));
builder_set_term_title (_("Exporting to repository"));