fix shutdown crash

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9527 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-09-11 19:56:57 +00:00
parent 4db944c255
commit 23af87b4bd
1 changed files with 3 additions and 1 deletions

View File

@ -342,7 +342,9 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_console_shutdown)
{
switch_log_unbind_logger(switch_console_logger);
switch_core_hash_destroy(&log_hash);
if (log_hash) {
switch_core_hash_destroy(&log_hash);
}
RUNNING = 0;
return SWITCH_STATUS_UNLOAD;