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
@@ -293,7 +293,7 @@ ostree_repo_resolve_partial_checksum (OstreeRepo *self,
gboolean ret = FALSE;
static const char hexchars[] = "0123456789abcdef";
gsize off;
gs_unref_hashtable GHashTable *ref_list = NULL;
g_autoptr(GHashTable) ref_list = NULL;
g_autofree char *ret_rev = NULL;
guint length;
const char *checksum = NULL;
@@ -497,7 +497,7 @@ ostree_repo_list_refs (OstreeRepo *self,
GError **error)
{
gboolean ret = FALSE;
gs_unref_hashtable GHashTable *ret_all_refs = NULL;
g_autoptr(GHashTable) ret_all_refs = NULL;
g_autofree char *remote = NULL;
g_autofree char *ref_prefix = NULL;