mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Don't free default account name until it has been lowercased
This commit is contained in:
parent
b5d4a52dfa
commit
5cf7ef0b4f
@ -125,11 +125,11 @@ cmd_connect(gchar **args, struct cmd_help_t help)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
g_free(def);
|
|
||||||
def = NULL;
|
|
||||||
|
|
||||||
char *lower = g_utf8_strdown(user, -1);
|
char *lower = g_utf8_strdown(user, -1);
|
||||||
char *jid;
|
char *jid;
|
||||||
|
g_free(def);
|
||||||
|
def = NULL;
|
||||||
|
|
||||||
ProfAccount *account = accounts_get_account(lower);
|
ProfAccount *account = accounts_get_account(lower);
|
||||||
if (account != NULL) {
|
if (account != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user