mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-22 19:45:54 -04: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
|
# glib
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -74,8 +74,11 @@ _chat_session_free(ChatSession *session)
|
|||||||
void
|
void
|
||||||
chat_sessions_init(void)
|
chat_sessions_init(void)
|
||||||
{
|
{
|
||||||
sessions = g_hash_table_new_full(g_str_hash, g_str_equal, g_free,
|
if (sessions) {
|
||||||
(GDestroyNotify)_chat_session_free);
|
g_hash_table_destroy(sessions);
|
||||||
|
}
|
||||||
|
|
||||||
|
sessions = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, (GDestroyNotify)_chat_session_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -231,6 +231,9 @@ otr_on_connect(ProfAccount *account)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (user_state) {
|
||||||
|
otrl_userstate_free(user_state);
|
||||||
|
}
|
||||||
user_state = otrl_userstate_create();
|
user_state = otrl_userstate_create();
|
||||||
|
|
||||||
gcry_error_t err = 0;
|
gcry_error_t err = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user