From 582c59bf7dcf37270c2fd7e99b4982ebc9bcbc74 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 18 Nov 2016 03:22:25 +0100 Subject: Improve plist_dict_set_item performance for large dictionaries with hash table --- src/bplist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bplist.c') diff --git a/src/bplist.c b/src/bplist.c index 9cc380c..124b024 100644 --- a/src/bplist.c +++ b/src/bplist.c @@ -1156,7 +1156,7 @@ PLIST_API void plist_to_bin(plist_t plist, char **plist_bin, uint32_t * length) //list of objects objects = ptr_array_new(256); //hashtable to write only once same nodes - ref_table = hash_table_new(plist_data_hash, plist_data_compare); + ref_table = hash_table_new(plist_data_hash, plist_data_compare, free); //serialize plist ser_s.objects = objects; -- cgit v1.1-32-gdbae