mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Fix memory leaks
This commit is contained in:
parent
4c03ee6066
commit
d79364358a
19
prof.supp
19
prof.supp
@ -6,25 +6,6 @@
|
||||
...
|
||||
}
|
||||
|
||||
# libotr
|
||||
|
||||
{
|
||||
otrl_init
|
||||
Memcheck:Leak
|
||||
...
|
||||
fun:otrl_init
|
||||
...
|
||||
}
|
||||
|
||||
{
|
||||
otrl_privkey_read
|
||||
Memcheck:Leak
|
||||
...
|
||||
fun:otrl_privkey_read_FILEp
|
||||
fun:otrl_privkey_read
|
||||
...
|
||||
}
|
||||
|
||||
# glib
|
||||
|
||||
{
|
||||
|
@ -74,8 +74,11 @@ _chat_session_free(ChatSession *session)
|
||||
void
|
||||
chat_sessions_init(void)
|
||||
{
|
||||
sessions = g_hash_table_new_full(g_str_hash, g_str_equal, g_free,
|
||||
(GDestroyNotify)_chat_session_free);
|
||||
if (sessions) {
|
||||
g_hash_table_destroy(sessions);
|
||||
}
|
||||
|
||||
sessions = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, (GDestroyNotify)_chat_session_free);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user