提交 5a92bb13 authored 作者: Mathieu Rene's avatar Mathieu Rene

SWITCH_DECLARE_GLOBAL_STRING_FUNC allocated stuff have to be freed on module shutdown

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12250 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 f6a96893
...@@ -973,6 +973,13 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_portaudio_shutdown) ...@@ -973,6 +973,13 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_portaudio_shutdown)
switch_core_hash_destroy(&globals.call_hash); switch_core_hash_destroy(&globals.call_hash);
switch_event_free_subclass(MY_EVENT_RINGING); switch_event_free_subclass(MY_EVENT_RINGING);
switch_safe_free(globals.dialplan);
switch_safe_free(globals.cid_name);
switch_safe_free(globals.cid_num);
switch_safe_free(globals.ring_file);
switch_safe_free(globals.hold_file);
switch_safe_free(globals.timer_name);
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论