Use g_autoptr(GHashTable) instead of gs_unref_hashtable

This commit is contained in:
Matthew Barnes committed 2015-05-06 22:07:10 -04:00
1 parent e6556dd223
commit 196d983af9
19 files changed
+49 -49

No files matched your search

+2 -2
View File
@@ -1186,7 +1186,7 @@ install_deployment_kernel (OstreeSysroot *sysroot,
glnx_fd_close int deployment_dfd = -1;
g_autofree char *contents = NULL;
g_autofree char *deployment_version = NULL;
gs_unref_hashtable GHashTable *osrelease_values = NULL;
g_autoptr(GHashTable) osrelease_values = NULL;
g_autofree char *linux_relpath = NULL;
g_autofree char *linux_key = NULL;
g_autofree char *initramfs_relpath = NULL;
@@ -1468,7 +1468,7 @@ cleanup_legacy_current_symlinks (OstreeSysroot *self,
{
gboolean ret = FALSE;
guint i;
gs_unref_hashtable GHashTable *created_current_for_osname =
g_autoptr(GHashTable) created_current_for_osname =
g_hash_table_new (g_str_hash, g_str_equal);
for (i = 0; i < self->deployments->len; i++)