1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-07-21 18:24:14 -04:00

Free lits in test_cmd_roster unittest

Regards https://github.com/profanity-im/profanity/issues/1019
This commit is contained in:
Michael Vetter 2019-10-06 18:43:27 +02:00
parent 1d23d6461d
commit 5b19ed28ce

View File

@ -57,6 +57,7 @@ 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();
}
@ -176,6 +177,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();
}
@ -231,5 +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();
}