[asterisk-commits] rmudgett: branch rmudgett/ao2_red_black r374227 - /team/rmudgett/ao2_red_blac...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Oct 2 13:15:54 CDT 2012
Author: rmudgett
Date: Tue Oct 2 13:15:50 2012
New Revision: 374227
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=374227
Log:
Use the external ref call for contained objects on node destruction.
Modified:
team/rmudgett/ao2_red_black/main/astobj2.c
Modified: team/rmudgett/ao2_red_black/main/astobj2.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ao2_red_black/main/astobj2.c?view=diff&rev=374227&r1=374226&r2=374227
==============================================================================
--- team/rmudgett/ao2_red_black/main/astobj2.c (original)
+++ team/rmudgett/ao2_red_black/main/astobj2.c Tue Oct 2 13:15:50 2012
@@ -2091,7 +2091,7 @@
* destroyed or the node had not been linked in yet.
*/
if (doomed->common.obj) {
- __ao2_ref(doomed->common.obj, -1);
+ ao2_t_ref(doomed->common.obj, -1, "Container node destruction");
doomed->common.obj = NULL;
}
}
@@ -4037,7 +4037,7 @@
* destroyed or the node had not been linked in yet.
*/
if (doomed->common.obj) {
- __ao2_ref(doomed->common.obj, -1);
+ ao2_t_ref(doomed->common.obj, -1, "Container node destruction");
doomed->common.obj = NULL;
}
}
More information about the asterisk-commits
mailing list