mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-14 11:38:05 +02:00
completion-test: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711751
This commit is contained in:
parent
ba56c7b720
commit
ee743674a1
@ -42,6 +42,7 @@ int main (int argc, char *argv[])
|
||||
items = g_list_append (items, "bb");
|
||||
items = g_list_append (items, "bc");
|
||||
g_completion_add_items (cmp, items);
|
||||
g_list_free (items);
|
||||
|
||||
items = g_completion_complete (cmp, "a", &prefix);
|
||||
g_assert (!strcmp ("a\302", prefix));
|
||||
@ -71,6 +72,7 @@ int main (int argc, char *argv[])
|
||||
|
||||
items = g_list_append (NULL, "bb");
|
||||
g_completion_remove_items (cmp, items);
|
||||
g_list_free (items);
|
||||
|
||||
items = g_completion_complete_utf8 (cmp, "b", &prefix);
|
||||
g_assert (g_list_length (items) == 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user