girepository: Fix various leaks in cmph-bdz-test

See https://gitlab.gnome.org/GNOME/glib/-/jobs/3294034

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2023-11-14 11:00:01 +00:00
parent af30e69140
commit aed9098530

View File

@ -42,6 +42,10 @@ build (void)
size = cmph_size (c);
g_assert (size == g_strv_length (strings));
cmph_config_destroy (config);
cmph_io_vector_adapter_destroy (io);
g_strfreev (strings);
return c;
}
@ -87,6 +91,8 @@ test_search (void)
hashes[i++] = hash;
assert_hashes_unique (G_N_ELEMENTS (hashes), &hashes[0]);
cmph_destroy (c);
}
static void
@ -123,6 +129,8 @@ test_search_packed (void)
hashes[i++] = hash;
assert_hashes_unique (G_N_ELEMENTS (hashes), &hashes[0]);
g_free (buf);
}
int