diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2015-05-05 11:43:31 -0400 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2015-05-06 22:07:10 -0400 |
commit | 196d983af930c665bbb385f59f6480b1032fd6bb (patch) | |
tree | 9c0472087c6df8a007668ea6afafaedcd2d06d40 /src/libostree/ostree-repo-static-delta-compilation-analysis.c | |
parent | e6556dd223a994d202b3486ce03930eaab4a29b8 (diff) | |
download | ostree-196d983af930c665bbb385f59f6480b1032fd6bb.tar.gz |
Use g_autoptr(GHashTable) instead of gs_unref_hashtable
Diffstat (limited to 'src/libostree/ostree-repo-static-delta-compilation-analysis.c')
-rw-r--r-- | src/libostree/ostree-repo-static-delta-compilation-analysis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libostree/ostree-repo-static-delta-compilation-analysis.c b/src/libostree/ostree-repo-static-delta-compilation-analysis.c index 8bcf4385..a1344e3b 100644 --- a/src/libostree/ostree-repo-static-delta-compilation-analysis.c +++ b/src/libostree/ostree-repo-static-delta-compilation-analysis.c @@ -155,7 +155,7 @@ build_content_sizenames_filtered (OstreeRepo *repo, gboolean ret = FALSE; gs_unref_ptrarray GPtrArray *ret_sizenames = g_ptr_array_new_with_free_func (_ostree_delta_content_sizenames_free); - gs_unref_hashtable GHashTable *sizenames_map = + g_autoptr(GHashTable) sizenames_map = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, _ostree_delta_content_sizenames_free); ostree_cleanup_repo_commit_traverse_iter OstreeRepoCommitTraverseIter iter = { 0, }; @@ -231,7 +231,7 @@ _ostree_delta_compute_similar_objects (OstreeRepo *repo, GError **error) { gboolean ret = FALSE; - gs_unref_hashtable GHashTable *ret_modified_regfile_content = + g_autoptr(GHashTable) ret_modified_regfile_content = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)g_ptr_array_unref); gs_unref_ptrarray GPtrArray *from_sizes = NULL; gs_unref_ptrarray GPtrArray *to_sizes = NULL; |