Add ProfIdFreeCallback to free stale id handlers on connect

This commit is contained in:
James Booth
2016-06-08 23:25:51 +01:00
parent d79364358a
commit 3a3933eff6
5 changed files with 86 additions and 41 deletions

View File

@@ -87,7 +87,7 @@ bookmark_request(void)
bookmark_list = NULL;
}
iq_id_handler_add(id, _bookmark_result_id_handler, id);
iq_id_handler_add(id, _bookmark_result_id_handler, free, id);
iq = stanza_create_bookmarks_storage_request(ctx);
xmpp_stanza_set_id(iq, id);