[svn-commits] rmudgett: branch 1.8 r377712 - /branches/1.8/main/frame.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Dec 10 19:11:06 CST 2012
Author: rmudgett
Date: Mon Dec 10 19:11:05 2012
New Revision: 377712
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=377712
Log:
Cleanup frame on exit.
* Cleanup CLI commands on exit.
(issue ASTERISK-20649)
Reported by: Corey Farrell
Patches:
frame-cleanup-1_8-only.patch (license #5909) patch uploaded by Corey Farrell
Modified:
branches/1.8/main/frame.c
Modified: branches/1.8/main/frame.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/frame.c?view=diff&rev=377712&r1=377711&r2=377712
==============================================================================
--- branches/1.8/main/frame.c (original)
+++ branches/1.8/main/frame.c Mon Dec 10 19:11:05 2012
@@ -987,9 +987,15 @@
AST_CLI_DEFINE(show_codec_n, "Shows a specific codec"),
};
+static void framer_shutdown(void)
+{
+ ast_cli_unregister_multiple(my_clis, ARRAY_LEN(my_clis));
+}
+
int init_framer(void)
{
ast_cli_register_multiple(my_clis, ARRAY_LEN(my_clis));
+ ast_register_atexit(framer_shutdown);
return 0;
}
More information about the svn-commits
mailing list