diff options
author | James Booth <boothj5@gmail.com> | 2016-08-21 15:25:49 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-08-21 15:25:49 +0100 |
commit | 088606280626b8b4d7f303e54f69efd7d3bdb76a (patch) | |
tree | 6e37efdd1f8cc3a9bb1d5b04507d0c0f4427a5ac /tests/unittests | |
parent | a52230978fbddc7f14460e2543621824689299d9 (diff) | |
download | profani-tty-088606280626b8b4d7f303e54f69efd7d3bdb76a.tar.gz |
Use hash table for bookmarks
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/test_cmd_bookmark.c | 2 | ||||
-rw-r--r-- | tests/unittests/xmpp/stub_xmpp.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/tests/unittests/test_cmd_bookmark.c b/tests/unittests/test_cmd_bookmark.c index f7a2cc4b..759b8238 100644 --- a/tests/unittests/test_cmd_bookmark.c +++ b/tests/unittests/test_cmd_bookmark.c @@ -126,8 +126,6 @@ void cmd_bookmark_list_shows_bookmarks(void **state) gboolean result = cmd_bookmark(&window, CMD_BOOKMARK, args); assert_true(result); - - g_list_free_full(bookmarks, (GDestroyNotify)_free_bookmark); } void cmd_bookmark_add_shows_message_when_invalid_jid(void **state) diff --git a/tests/unittests/xmpp/stub_xmpp.c b/tests/unittests/xmpp/stub_xmpp.c index c474e82a..e4ef7ea1 100644 --- a/tests/unittests/xmpp/stub_xmpp.c +++ b/tests/unittests/xmpp/stub_xmpp.c @@ -244,7 +244,7 @@ gboolean bookmark_join(const char *jid) return FALSE; } -const GList * bookmark_get_list(void) +GList * bookmark_get_list(void) { return (GList *)mock(); } |