diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-10-06 19:13:45 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-10-06 19:13:45 +0200 |
commit | a10ab4e692e37dec98c6801fa86894a2683ed309 (patch) | |
tree | 5555676f3a42a06460cfe092ef3e07196b261dbc /tests | |
parent | 9b3517c21eb4344b555f663253c4c837b5cf2313 (diff) | |
download | profani-tty-a10ab4e692e37dec98c6801fa86894a2683ed309.tar.gz |
First destroy roster then free list in test_cmd_roster
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/test_cmd_roster.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unittests/test_cmd_roster.c b/tests/unittests/test_cmd_roster.c index 563ff9ca..4243e88b 100644 --- a/tests/unittests/test_cmd_roster.c +++ b/tests/unittests/test_cmd_roster.c @@ -57,8 +57,8 @@ void cmd_roster_shows_roster_when_no_args(void **state) gboolean result = cmd_roster(NULL, CMD_ROSTER, args); assert_true(result); - g_slist_free(roster); roster_destroy(); + g_slist_free(roster); } void cmd_roster_add_shows_message_when_no_jid(void **state) @@ -178,8 +178,8 @@ void cmd_roster_nick_sends_name_change_request(void **state) PContact contact = roster_get_contact(jid); assert_string_equal(p_contact_name(contact), nick); - g_slist_free(groups); roster_destroy(); + g_slist_free(groups); } void cmd_roster_clearnick_shows_message_when_no_jid(void **state) @@ -234,6 +234,6 @@ void cmd_roster_clearnick_sends_name_change_request_with_empty_nick(void **state PContact contact = roster_get_contact(jid); assert_null(p_contact_name(contact)); - g_slist_free(groups); roster_destroy(); + g_slist_free(groups); } |