mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-01 19:24:15 -04:00
Fix unittest memleak in test_cmd_join
muc_init() call without muc_close() Regards https://github.com/profanity-im/profanity/issues/1019
This commit is contained in:
parent
4e8f0c90b5
commit
fd18230cd4
@ -81,6 +81,8 @@ void cmd_join_uses_account_mucservice_when_no_service_specified(void **state)
|
||||
|
||||
gboolean result = cmd_join(NULL, CMD_JOIN, args);
|
||||
assert_true(result);
|
||||
|
||||
muc_close();
|
||||
}
|
||||
|
||||
void cmd_join_uses_supplied_nick(void **state)
|
||||
@ -106,6 +108,8 @@ void cmd_join_uses_supplied_nick(void **state)
|
||||
|
||||
gboolean result = cmd_join(NULL, CMD_JOIN, args);
|
||||
assert_true(result);
|
||||
|
||||
muc_close();
|
||||
}
|
||||
|
||||
void cmd_join_uses_account_nick_when_not_supplied(void **state)
|
||||
@ -131,6 +135,8 @@ void cmd_join_uses_account_nick_when_not_supplied(void **state)
|
||||
|
||||
gboolean result = cmd_join(NULL, CMD_JOIN, args);
|
||||
assert_true(result);
|
||||
|
||||
muc_close();
|
||||
}
|
||||
|
||||
void cmd_join_uses_password_when_supplied(void **state)
|
||||
@ -159,4 +165,6 @@ void cmd_join_uses_password_when_supplied(void **state)
|
||||
|
||||
gboolean result = cmd_join(NULL, CMD_JOIN, args);
|
||||
assert_true(result);
|
||||
|
||||
muc_close();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user