add switch_hashtable_insert_destructor so you can insert a pointer into a hash with a custom destructor and use it in spandsp to fix a leak on reloadxml with the tone_descriptor tables and fix a bunch of random tiny leaks etc

This commit is contained in:
Anthony Minessale
2014-04-09 23:26:41 +05:00
parent d789c6470a
commit 4178688b4a
12 changed files with 56 additions and 37 deletions
@@ -22,6 +22,7 @@ struct entry
void *k, *v;
unsigned int h;
hashtable_flag_t flags;
hashtable_destructor_t destructor;
struct entry *next;
};