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
This commit is contained in:
Mathieu Rene 2009-02-23 18:48:40 +00:00
parent f6a96893db
commit 5a92bb1383
1 changed files with 7 additions and 0 deletions

View File

@ -974,6 +974,13 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_portaudio_shutdown)
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;
}