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.
This commit is contained in:
1 parent
7a62d64968
commit
4ee1acd981
51 files changed
+320
-320
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user