summaryrefslogtreecommitdiff
path: root/src/ostree/ot-builtin-pull-local.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2015-05-04 18:22:39 -0400
committerMatthew Barnes <mbarnes@redhat.com>2015-05-06 21:51:19 -0400
commit4ee1acd98109e98fd0a659f43d3187597d034f05 (patch)
tree4847d102bb7353737d21bf4825a2e3c041ba221f /src/ostree/ot-builtin-pull-local.c
parent7a62d64968160d27cbd90aeeed754eb185135f91 (diff)
downloadostree-4ee1acd98109e98fd0a659f43d3187597d034f05.tar.gz
Use g_autoptr() for GIO object types
GLib 2.44 supplies all the necessary autocleanup macros for GIO types, and libglnx backports the relevant macros for ostree.
Diffstat (limited to 'src/ostree/ot-builtin-pull-local.c')
-rw-r--r--src/ostree/ot-builtin-pull-local.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/ot-builtin-pull-local.c b/src/ostree/ot-builtin-pull-local.c
index 991cea17..40179f25 100644
--- a/src/ostree/ot-builtin-pull-local.c
+++ b/src/ostree/ot-builtin-pull-local.c
@@ -86,7 +86,7 @@ ostree_builtin_pull_local (int argc, char **argv, GCancellable *cancellable, GEr
if (argc == 2)
{
- gs_unref_object GFile *src_repo_path = g_file_new_for_path (src_repo_arg);
+ g_autoptr(GFile) src_repo_path = g_file_new_for_path (src_repo_arg);
gs_unref_object OstreeRepo *src_repo = ostree_repo_new (src_repo_path);
gs_unref_hashtable GHashTable *refs_to_clone = NULL;