[asterisk-commits] mmichelson: trunk r157592 - /trunk/res/res_musiconhold.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 18 17:59:02 CST 2008


Author: mmichelson
Date: Tue Nov 18 17:59:02 2008
New Revision: 157592

URL: http://svn.digium.com/view/asterisk?view=rev&rev=157592
Log:
This change prevents a crash from occurring if res_musiconhold.so
is unloaded and then Asterisk is stopped. The problem was that
we are not unregistering the ast_moh_destroy function at exit.

(closes issue #13761)
Reported by: eliel
Patches:
      res_musiconhold.c.patch uploaded by eliel (license 64)


Modified:
    trunk/res/res_musiconhold.c

Modified: trunk/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_musiconhold.c?view=diff&rev=157592&r1=157591&r2=157592
==============================================================================
--- trunk/res/res_musiconhold.c (original)
+++ trunk/res/res_musiconhold.c Tue Nov 18 17:59:02 2008
@@ -1672,6 +1672,7 @@
 	res |= ast_unregister_application(start_moh);
 	res |= ast_unregister_application(stop_moh);
 	ast_cli_unregister_multiple(cli_moh, sizeof(cli_moh) / sizeof(struct ast_cli_entry));
+	ast_unregister_atexit(ast_moh_destroy);
 	return res;
 }
 




More information about the asterisk-commits mailing list