Use g_auto(GStrv) instead of gs_strfreev

This commit is contained in:
Matthew Barnes committed 2015-05-06 22:07:11 -04:00
1 parent cca69b3f55
commit 302ac4dd89
7 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -296,7 +296,7 @@ _ostree_bootloader_grub2_write_config (OstreeBootloader *bootloader,
g_autoptr(GFile) new_config_path = NULL;
glnx_unref_object GSSubprocessContext *procctx = NULL;
glnx_unref_object GSSubprocess *proc = NULL;
gs_strfreev char **child_env = g_get_environ ();
g_auto(GStrv) child_env = g_get_environ ();
g_autofree char *bootversion_str = g_strdup_printf ("%u", (guint)bootversion);
g_autoptr(GFile) config_path_efi_dir = NULL;
g_autofree char *grub2_mkconfig_chroot = NULL;
+1 -1
View File
@@ -166,7 +166,7 @@ _ostree_kernel_args_append_proc_cmdline (OstreeKernelArgs *kargs,
g_autoptr(GFile) proc_cmdline_path = g_file_new_for_path ("/proc/cmdline");
g_autofree char *proc_cmdline = NULL;
gsize proc_cmdline_len = 0;
gs_strfreev char **proc_cmdline_args = NULL;
g_auto(GStrv) proc_cmdline_args = NULL;
if (!g_file_load_contents (proc_cmdline_path, cancellable,
&proc_cmdline, &proc_cmdline_len,
+2 -2
View File
@@ -298,7 +298,7 @@ _ostree_repo_get_remote_list_option (OstreeRepo *self,
if (remote != NULL)
{
gs_strfreev char **value = NULL;
g_auto(GStrv) value = NULL;
GError *local_error = NULL;
value = g_key_file_get_string_list (remote->options,
@@ -1272,7 +1272,7 @@ add_remotes_from_keyfile (OstreeRepo *self,
GError **error)
{
GQueue queue = G_QUEUE_INIT;
gs_strfreev char **groups = NULL;
g_auto(GStrv) groups = NULL;
gsize length, ii;
gboolean ret = FALSE;