changeset 2216:fa516ef22145

caps: Specifiy the function to free the "features" hash values
author Mikael Berthe <mikael@lilotux.net>
date Thu, 05 Nov 2015 20:58:57 +0100
parents ba1a770dd632
children c9640971beec
files mcabber/mcabber/caps.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/mcabber/caps.c	Thu Nov 05 20:54:22 2015 +0100
+++ b/mcabber/mcabber/caps.c	Thu Nov 05 20:58:57 2015 +0100
@@ -98,7 +98,7 @@
   if (!hash)
     return;
   caps *c = g_new0(caps, 1);
-  c->features = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
+  c->features = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
   c->identities = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, identity_destroy);
   c->forms = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, form_destroy);
   g_hash_table_replace(caps_cache, g_strdup(hash), c);