summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-bootloader-uboot.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/libostree/ostree-bootloader-uboot.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/libostree/ostree-bootloader-uboot.c')
-rw-r--r--src/libostree/ostree-bootloader-uboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libostree/ostree-bootloader-uboot.c b/src/libostree/ostree-bootloader-uboot.c
index a64c66a2..7e71ab9e 100644
--- a/src/libostree/ostree-bootloader-uboot.c
+++ b/src/libostree/ostree-bootloader-uboot.c
@@ -108,7 +108,7 @@ _ostree_bootloader_uboot_write_config (OstreeBootloader *bootloader,
GError **error)
{
OstreeBootloaderUboot *self = OSTREE_BOOTLOADER_UBOOT (bootloader);
- gs_unref_object GFile *new_config_path = NULL;
+ g_autoptr(GFile) new_config_path = NULL;
g_autofree char *config_contents = NULL;
g_autofree char *new_config_contents = NULL;
gs_unref_ptrarray GPtrArray *new_lines = NULL;