Fixed various jid and account mem leaks

This commit is contained in:
James Booth
2015-06-24 20:53:04 +01:00
parent 626ab51ed4
commit 240f6a3f79
6 changed files with 10 additions and 1 deletions

View File

@@ -226,6 +226,7 @@ cmd_connect(ProfWin *window, gchar **args, struct cmd_help_t help)
} else {
cons_show("Error evaluating password, see logs for details.");
g_free(lower);
account_free(account);
return TRUE;
}
@@ -2179,6 +2180,7 @@ cmd_join(ProfWin *window, gchar **args, struct cmd_help_t help)
if (!parsed) {
cons_show("Usage: %s", help.usage);
cons_show("");
jid_destroy(room_arg);
return TRUE;
}