[asterisk-commits] file: branch file/bridge_unreal_optimizer r411867 - /team/file/bridge_unreal_...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Apr 7 10:44:29 CDT 2014
Author: file
Date: Mon Apr 7 10:44:21 2014
New Revision: 411867
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=411867
Log:
Add cleanup functions in case a pvt goes away with references held to other things.
Modified:
team/file/bridge_unreal_optimizer/main/core_unreal.c
Modified: team/file/bridge_unreal_optimizer/main/core_unreal.c
URL: http://svnview.digium.com/svn/asterisk/team/file/bridge_unreal_optimizer/main/core_unreal.c?view=diff&rev=411867&r1=411866&r2=411867
==============================================================================
--- team/file/bridge_unreal_optimizer/main/core_unreal.c (original)
+++ team/file/bridge_unreal_optimizer/main/core_unreal.c Mon Apr 7 10:44:21 2014
@@ -814,6 +814,11 @@
{
struct ast_unreal_pvt *doomed = vdoomed;
+ ao2_cleanup(doomed->bridge_owner);
+ ast_channel_cleanup(doomed->bridged_owner);
+ ao2_cleanup(doomed->bridge_chan);
+ ast_channel_cleanup(doomed->bridged_chan);
+
doomed->reqcap = ast_format_cap_destroy(doomed->reqcap);
}
More information about the asterisk-commits
mailing list