diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2015-05-04 18:22:39 -0400 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2015-05-06 21:51:19 -0400 |
commit | 4ee1acd98109e98fd0a659f43d3187597d034f05 (patch) | |
tree | 4847d102bb7353737d21bf4825a2e3c041ba221f /src/ostree/ot-builtin-fsck.c | |
parent | 7a62d64968160d27cbd90aeeed754eb185135f91 (diff) | |
download | ostree-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-fsck.c')
-rw-r--r-- | src/ostree/ot-builtin-fsck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ostree/ot-builtin-fsck.c b/src/ostree/ot-builtin-fsck.c index eb90effc..6ffe0e28 100644 --- a/src/ostree/ot-builtin-fsck.c +++ b/src/ostree/ot-builtin-fsck.c @@ -48,8 +48,8 @@ load_and_fsck_one_object (OstreeRepo *repo, gboolean ret = FALSE; gboolean missing = FALSE; gs_unref_variant GVariant *metadata = NULL; - gs_unref_object GInputStream *input = NULL; - gs_unref_object GFileInfo *file_info = NULL; + g_autoptr(GInputStream) input = NULL; + g_autoptr(GFileInfo) file_info = NULL; gs_unref_variant GVariant *xattrs = NULL; GError *temp_error = NULL; |