Fix few memory leaks

This commit is contained in:
Dmitry Podgorny
2020-02-27 01:35:36 +02:00
parent 779c2efc17
commit d18ec23d0a
3 changed files with 31 additions and 6 deletions

View File

@@ -252,6 +252,7 @@ iq_handlers_clear()
{
if (id_handlers) {
g_hash_table_remove_all(id_handlers);
g_hash_table_destroy(id_handlers);
id_handlers = NULL;
}
}
@@ -340,6 +341,7 @@ iq_rooms_cache_clear(void)
{
if (rooms_cache) {
g_hash_table_remove_all(rooms_cache);
g_hash_table_destroy(rooms_cache);
rooms_cache = NULL;
}
}