From 0044d3ba94f9041492ea90cf8961fd8b55daefda Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 27 Jul 2009 12:17:06 -0700 Subject: Add destructor for hash_table --- src/mesa/shader/hash_table.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mesa/shader/hash_table.h') diff --git a/src/mesa/shader/hash_table.h b/src/mesa/shader/hash_table.h index 83ae7f07c78..7b302f5dbee 100644 --- a/src/mesa/shader/hash_table.h +++ b/src/mesa/shader/hash_table.h @@ -53,6 +53,15 @@ extern struct hash_table *hash_table_ctor(unsigned num_buckets, hash_func_t hash, hash_compare_func_t compare); +/** + * Release all memory associated with a hash table + * + * \warning + * This function cannot release memory occupied either by keys or data. + */ +extern void hash_table_dtor(struct hash_table *ht); + + /** * Flush all entries from a hash table * -- cgit v1.2.3