projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba56c7b
)
completion-test: Fix leaks in tests
author
Stef Walter
<stefw@gnome.org>
Sat, 9 Nov 2013 19:25:39 +0000
(20:25 +0100)
committer
Stef Walter
<stefw@gnome.org>
Sun, 10 Nov 2013 21:41:29 +0000
(22:41 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=711751
tests/completion-test.c
patch
|
blob
|
history
diff --git
a/tests/completion-test.c
b/tests/completion-test.c
index
789cd9a
..
4be88c9
100644
(file)
--- a/
tests/completion-test.c
+++ b/
tests/completion-test.c
@@
-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);