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 committed 2014-04-09 23:26:47 +05:00
1 parent d789c6470a
commit 4178688b4a
12 files changed
+56 -37

No files matched your search

+1
View File
@@ -872,6 +872,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_v8_shutdown)
switch_mutex_destroy(globals.event_mutex);
switch_core_hash_destroy(&module_manager.load_hash);
switch_core_destroy_memory_pool(&module_manager.pool);
return SWITCH_STATUS_SUCCESS;
}