mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02:00
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:
@@ -42,6 +42,10 @@ build (void)
|
|||||||
size = cmph_size (c);
|
size = cmph_size (c);
|
||||||
g_assert (size == g_strv_length (strings));
|
g_assert (size == g_strv_length (strings));
|
||||||
|
|
||||||
|
cmph_config_destroy (config);
|
||||||
|
cmph_io_vector_adapter_destroy (io);
|
||||||
|
g_strfreev (strings);
|
||||||
|
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,6 +91,8 @@ test_search (void)
|
|||||||
hashes[i++] = hash;
|
hashes[i++] = hash;
|
||||||
|
|
||||||
assert_hashes_unique (G_N_ELEMENTS (hashes), &hashes[0]);
|
assert_hashes_unique (G_N_ELEMENTS (hashes), &hashes[0]);
|
||||||
|
|
||||||
|
cmph_destroy (c);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -123,6 +129,8 @@ test_search_packed (void)
|
|||||||
hashes[i++] = hash;
|
hashes[i++] = hash;
|
||||||
|
|
||||||
assert_hashes_unique (G_N_ELEMENTS (hashes), &hashes[0]);
|
assert_hashes_unique (G_N_ELEMENTS (hashes), &hashes[0]);
|
||||||
|
|
||||||
|
g_free (buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Reference in New Issue
Block a user