Commit 14be894b authored by Michal Srb's avatar Michal Srb Committed by Adam Jackson

Xext: Fix memory leaks in hashtable.

Do not forget to delete key and value of every item and the hashtable itself.
parent 1326ee0b
......@@ -77,10 +77,13 @@ ht_destroy(HashTable ht)
for (c = 0; c < numBuckets; ++c) {
xorg_list_for_each_entry_safe(it, tmp, &ht->buckets[c], l) {
xorg_list_del(&it->l);
free(it->key);
free(it->data);
free(it);
}
}
free(ht->buckets);
free(ht);
}
static Bool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment