about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2020-02-27 01:35:36 +0200
committerDmitry Podgorny <pasis.ua@gmail.com>2020-02-27 01:35:36 +0200
commitd18ec23d0a38bd538d48f7e827fec0fceb9f230d (patch)
tree5b1284d4c35cf121af9aa8670fbc7b31177fd862 /src/xmpp
parent779c2efc1710ed5d8b4fa60e00e85731b7bb7bd7 (diff)
downloadprofani-tty-d18ec23d0a38bd538d48f7e827fec0fceb9f230d.tar.gz
Fix few memory leaks
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/iq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index 3104aa6c..02f59b3f 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -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;
     }
 }