Test account free'd after connect

This commit is contained in:
James Booth
2013-12-15 22:00:42 +00:00
parent 5ec2d3cf7c
commit 6d75ebb8e9
5 changed files with 40 additions and 3 deletions

View File

@@ -78,6 +78,7 @@ cmd_connect(gchar **args, struct cmd_help_t help)
}
cons_show("Connecting with account %s as %s", account->name, jid);
conn_status = jabber_connect_with_account(account);
accounts_free_account(account);
} else {
char *passwd = ui_ask_password();
jid = strdup(lower);
@@ -92,7 +93,6 @@ cmd_connect(gchar **args, struct cmd_help_t help)
log_debug("Connection attempt for %s failed", jid);
}
accounts_free_account(account);
free(jid);
result = TRUE;