[asterisk-commits] russell: trunk r98581 - /trunk/main/audiohook.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Jan 12 18:10:01 CST 2008


Author: russell
Date: Sat Jan 12 18:10:00 2008
New Revision: 98581

URL: http://svn.digium.com/view/asterisk?view=rev&rev=98581
Log:
Remove a duplicate lock of the audiohook lock when destroying manipulate
audiohooks.  This causes an error when we attempt to destroy the lock later
when freeing the audiohook.

Modified:
    trunk/main/audiohook.c

Modified: trunk/main/audiohook.c
URL: http://svn.digium.com/view/asterisk/trunk/main/audiohook.c?view=diff&rev=98581&r1=98580&r2=98581
==============================================================================
--- trunk/main/audiohook.c (original)
+++ trunk/main/audiohook.c Sat Jan 12 18:10:00 2008
@@ -357,7 +357,6 @@
 	/* Drop any manipulaters */
 	while ((audiohook = AST_LIST_REMOVE_HEAD(&audiohook_list->manipulate_list, list))) {
 		ast_audiohook_lock(audiohook);
-		ast_mutex_lock(&audiohook->lock);
 		audiohook->status = AST_AUDIOHOOK_STATUS_DONE;
 		ast_audiohook_unlock(audiohook);
 		audiohook->manipulate_callback(audiohook, NULL, NULL, 0);




More information about the asterisk-commits mailing list