changeset 2223:965e0282c128

Backed out changeset fa516ef22145 Turns out that in this hash the value pointer is the same as the key pointer, so there's no need to free both the key and the value.
author Mikael Berthe <mikael@lilotux.net>
date Fri, 06 Nov 2015 22:31:40 +0100
parents ce1043326bbc
children 736f9323d701
files mcabber/mcabber/caps.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/mcabber/caps.c	Fri Nov 06 20:33:31 2015 +0100
+++ b/mcabber/mcabber/caps.c	Fri Nov 06 22:31:40 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, g_free);
+  c->features = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
   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);