[asterisk-commits] coreyfarrell: branch 13 r426803 - /branches/13/main/audiohook.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 30 18:44:35 CDT 2014
Author: coreyfarrell
Date: Thu Oct 30 18:44:27 2014
New Revision: 426803
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=426803
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/
Modified:
branches/13/main/audiohook.c
Modified: branches/13/main/audiohook.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/main/audiohook.c?view=diff&rev=426803&r1=426802&r2=426803
==============================================================================
--- branches/13/main/audiohook.c (original)
+++ branches/13/main/audiohook.c Thu Oct 30 18:44:27 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