Fix memory leaks

This commit is contained in:
James Booth
2016-06-08 22:23:00 +01:00
parent 4c03ee6066
commit d79364358a
3 changed files with 8 additions and 21 deletions

View File

@@ -231,6 +231,9 @@ otr_on_connect(ProfAccount *account)
return;
}
if (user_state) {
otrl_userstate_free(user_state);
}
user_state = otrl_userstate_create();
gcry_error_t err = 0;