diff options
Diffstat (limited to 'tests/ephy-gsb-utils-test.c')
-rw-r--r-- | tests/ephy-gsb-utils-test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ephy-gsb-utils-test.c b/tests/ephy-gsb-utils-test.c index 8c5330d40..f0bc45376 100644 --- a/tests/ephy-gsb-utils-test.c +++ b/tests/ephy-gsb-utils-test.c @@ -161,12 +161,13 @@ test_ephy_gsb_utils_compute_hashes (void) g_assert_cmpuint (g_list_length (hashes), ==, test.num_hashes); for (guint k = 0; k < test.num_hashes; k++, h = h->next) { - char *hash_hex = bytes_to_hex (h->data, GSB_HASH_SIZE); + char *hash_hex = bytes_to_hex (g_bytes_get_data (h->data, NULL), + g_bytes_get_size (h->data)); g_assert_cmpstr (hash_hex, ==, test.hashes_hex[k]); g_free (hash_hex); } - g_list_free_full (hashes, g_free); + g_list_free_full (hashes, (GDestroyNotify)g_bytes_unref); } } |