[asterisk-commits] coreyfarrell: trunk r426804 - in /trunk: ./ main/audiohook.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 30 18:45:28 CDT 2014


Author: coreyfarrell
Date: Thu Oct 30 18:45:25 2014
New Revision: 426804

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=426804
Log:
audiohooks: Clean references to formats

Cleanup references to in_translate[x].format and
out_translate[x].format in ast_audiohook_detach_list.

ASTERISK-24465 #close
Reported by: Corey Farrell
Review: https://reviewboard.asterisk.org/r/4124/
........

Merged revisions 426803 from http://svn.asterisk.org/svn/asterisk/branches/13

Modified:
    trunk/   (props changed)
    trunk/main/audiohook.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-13-merged' - no diff available.

Modified: trunk/main/audiohook.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/audiohook.c?view=diff&rev=426804&r1=426803&r2=426804
==============================================================================
--- trunk/main/audiohook.c (original)
+++ trunk/main/audiohook.c Thu Oct 30 18:45:25 2014
@@ -558,9 +558,11 @@
 	for (i = 0; i < 2; i++) {
 		if (audiohook_list->in_translate[i].trans_pvt) {
 			ast_translator_free_path(audiohook_list->in_translate[i].trans_pvt);
+			ao2_cleanup(audiohook_list->in_translate[i].format);
 		}
 		if (audiohook_list->out_translate[i].trans_pvt) {
 			ast_translator_free_path(audiohook_list->out_translate[i].trans_pvt);
+			ao2_cleanup(audiohook_list->in_translate[i].format);
 		}
 	}
 




More information about the asterisk-commits mailing list