[asterisk-commits] oej: branch oej/minivoicemail r58469 -
/team/oej/minivoicemail/apps/app_minivm.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Mar 8 12:19:06 MST 2007
Author: oej
Date: Thu Mar 8 13:19:06 2007
New Revision: 58469
URL: http://svn.digium.com/view/asterisk?view=rev&rev=58469
Log:
release templates too
Modified:
team/oej/minivoicemail/apps/app_minivm.c
Modified: team/oej/minivoicemail/apps/app_minivm.c
URL: http://svn.digium.com/view/asterisk/team/oej/minivoicemail/apps/app_minivm.c?view=diff&rev=58469&r1=58468&r2=58469
==============================================================================
--- team/oej/minivoicemail/apps/app_minivm.c (original)
+++ team/oej/minivoicemail/apps/app_minivm.c Thu Mar 8 13:19:06 2007
@@ -2424,6 +2424,7 @@
{
struct minivm_account *cur;
struct minivm_zone *zcur;
+ struct minivm_template *tcur;
struct ast_config *cfg;
struct ast_variable *var;
char *cat;
@@ -2445,6 +2446,13 @@
free_zone(zcur);
}
AST_LIST_UNLOCK(&minivm_zones);
+
+ /* Free all templates */
+ AST_LIST_LOCK(&minivm_templates);
+ while ((tcur = AST_LIST_REMOVE_HEAD(&minivm_templates, list))) {
+ message_template_free(tcur);
+ }
+ AST_LIST_UNLOCK(&minivm_templates);
/* First, set some default settings */
global_externnotify[0] = '\0';
@@ -2470,6 +2478,8 @@
return 0;
}
+ if (option_debug > 1)
+ ast_log(LOG_DEBUG, "-_-_- Loaded configuration file, now parsing\n");
/* General settings */
@@ -2897,6 +2907,8 @@
message_destroy_list(); /* Destroy list of voicemail message templates */
timezone_destroy_list(); /* Destroy list of timezones */
vmaccounts_destroy_list(); /* Destroy list of voicemail accounts */
+ if (option_debug > 1)
+ ast_log(LOG_DEBUG, "Destroyed memory objects...\n");
return(load_config());
}
More information about the asterisk-commits
mailing list