about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-05-02 00:59:37 +0100
committerJames Booth <boothj5@gmail.com>2016-05-02 00:59:37 +0100
commit92780f3e6ef0e8f9904c13f0fa8fa1f78ceafe8b (patch)
tree715842b005e09916ac5e5e4a476596b548df0afa
parent31ab43ea2d4e9aba5b1629d17360ebc459f3f239 (diff)
downloadprofani-tty-92780f3e6ef0e8f9904c13f0fa8fa1f78ceafe8b.tar.gz
Remove free DiscoInfo values
-rw-r--r--src/xmpp/connection.c2
-rw-r--r--src/xmpp/iq.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c
index 34cf939d..f730c99c 100644
--- a/src/xmpp/connection.c
+++ b/src/xmpp/connection.c
@@ -699,7 +699,7 @@ _connection_handler(xmpp_conn_t *const conn, const xmpp_conn_event_t status, con
         // items discovery
         DiscoInfo *info = malloc(sizeof(struct disco_info_t));
         info->item = strdup(jabber_conn.domain);
-        info->features = g_hash_table_new_full(g_str_hash, g_str_equal, free, free);
+        info->features = g_hash_table_new_full(g_str_hash, g_str_equal, free, NULL);
         disco_items = g_slist_append(disco_items, info);
         iq_disco_info_request_onconnect(info->item);
         iq_disco_items_request_onconnect(jabber_conn.domain);
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index fcdaa0a8..092d9392 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -2050,7 +2050,7 @@ _disco_items_result_handler(xmpp_stanza_t *const stanza)
                 DiscoItem *item = res_items->data;
                 DiscoInfo *info = malloc(sizeof(struct disco_info_t));
                 info->item = strdup(item->jid);
-                info->features = g_hash_table_new_full(g_str_hash, g_str_equal, free, free);
+                info->features = g_hash_table_new_full(g_str_hash, g_str_equal, free, NULL);
                 jabber_set_disco_items(g_slist_append(jabber_get_disco_items(), info));
                 iq_disco_info_request_onconnect(info->item);
                 res_items = g_slist_next(res_items);