Use g_autoptr(GKeyFile) instead of gs_unref_keyfile
This commit is contained in:
1 parent
c2c322efa9
commit
c69347b622
1 file changed
+1
-1
@@ -129,7 +129,7 @@ ot_admin_builtin_set_origin (int argc, char **argv, GCancellable *cancellable, G
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
{ g_autofree char *new_refspec = g_strconcat (remotename, ":", branch ? branch : origin_ref, NULL);
|
{ 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;
|
g_autoptr(GFile) origin_path = NULL;
|
||||||
|
|
||||||
new_origin = ostree_sysroot_origin_new_from_refspec (sysroot, new_refspec);
|
new_origin = ostree_sysroot_origin_new_from_refspec (sysroot, new_refspec);
|
||||||
|
|||||||
Reference in new issue
Block a user