1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

Don't free default account name until it has been lowercased

This commit is contained in:
James Booth 2015-01-14 21:52:13 +00:00
parent b5d4a52dfa
commit 5cf7ef0b4f

View File

@ -125,11 +125,11 @@ cmd_connect(gchar **args, struct cmd_help_t help)
return TRUE;
}
}
g_free(def);
def = NULL;
char *lower = g_utf8_strdown(user, -1);
char *jid;
g_free(def);
def = NULL;
ProfAccount *account = accounts_get_account(lower);
if (account != NULL) {