return SWITCH_STATUS_GENERR;
}
- if (switch_core_new_memory_pool(&globals.pool) != SWITCH_STATUS_SUCCESS) {
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "OH OH no pool\n");
- return SWITCH_STATUS_GENERR;
- }
+ globals.pool = pool;
switch_mutex_init(&globals.event_mutex, SWITCH_MUTEX_NESTED, globals.pool);
globals.event_handlers = new set<FSEventHandler *>();
delete globals.event_handlers;
switch_mutex_destroy(globals.event_mutex);
- switch_core_destroy_memory_pool(&globals.pool);
switch_core_hash_destroy(&module_manager.load_hash);