diff options
author | Dmitry Podgorny <pasis.ua@gmail.com> | 2020-02-27 01:35:36 +0200 |
---|---|---|
committer | Dmitry Podgorny <pasis.ua@gmail.com> | 2020-02-27 01:35:36 +0200 |
commit | d18ec23d0a38bd538d48f7e827fec0fceb9f230d (patch) | |
tree | 5b1284d4c35cf121af9aa8670fbc7b31177fd862 /src/xmpp | |
parent | 779c2efc1710ed5d8b4fa60e00e85731b7bb7bd7 (diff) | |
download | profani-tty-d18ec23d0a38bd538d48f7e827fec0fceb9f230d.tar.gz |
Fix few memory leaks
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/iq.c | 2 |
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; } } |