Use g_autoptr(GKeyFile) instead of gs_unref_keyfile

This commit is contained in:
Matthew Barnes 2015-05-05 11:47:07 -04:00
parent c2c322efa9
commit c69347b622
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ ot_admin_builtin_set_origin (int argc, char **argv, GCancellable *cancellable, G
goto out;
{ g_autofree char *new_refspec = g_strconcat (remotename, ":", branch ? branch : origin_ref, NULL);
gs_unref_keyfile GKeyFile *new_origin = NULL;
g_autoptr(GKeyFile) new_origin = NULL;
g_autoptr(GFile) origin_path = NULL;
new_origin = ostree_sysroot_origin_new_from_refspec (sysroot, new_refspec);