Free resources on OTR shutdown

This commit is contained in:
James Booth
2014-06-26 23:55:57 +01:00
parent 8cf7122e7a
commit c98ce4299d
4 changed files with 20 additions and 2 deletions

View File

@@ -2766,6 +2766,7 @@ cmd_otr(gchar **args, struct cmd_help_t help)
if (strcmp(args[0], "gen") == 0) {
ProfAccount *account = accounts_get_account(jabber_get_account_name());
otr_keygen(account);
account_free(account);
return TRUE;
} else if (strcmp(args[0], "myfp") == 0) {