mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-01 20:16:21 +00:00
Call iq_handlers_clear() upon disconnect
Free id_handlers. Fix memory leaks.
This commit is contained in:
@@ -251,6 +251,14 @@ iq_handlers_init(void)
|
||||
rooms_cache = g_hash_table_new_full(g_str_hash, g_str_equal, free, (GDestroyNotify)xmpp_stanza_release);
|
||||
}
|
||||
|
||||
void
|
||||
iq_handlers_clear()
|
||||
{
|
||||
if (id_handlers) {
|
||||
g_hash_table_remove_all(id_handlers);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
iq_id_handler_add(const char *const id, ProfIqCallback func, ProfIqFreeCallback free_func, void *userdata)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user