[asterisk-commits] mnicholson: branch irroot/t38gateway-trunk r324553 - /team/irroot/t38gateway-...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jun 22 14:38:36 CDT 2011
Author: mnicholson
Date: Wed Jun 22 14:38:11 2011
New Revision: 324553
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=324553
Log:
don't ref details twice
Modified:
team/irroot/t38gateway-trunk/res/res_fax.c
Modified: team/irroot/t38gateway-trunk/res/res_fax.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/t38gateway-trunk/res/res_fax.c?view=diff&rev=324553&r1=324552&r2=324553
==============================================================================
--- team/irroot/t38gateway-trunk/res/res_fax.c (original)
+++ team/irroot/t38gateway-trunk/res/res_fax.c Wed Jun 22 14:38:11 2011
@@ -885,8 +885,10 @@
}
s->chan = chan;
- s->details = details;
- ao2_ref(s->details, 1);
+ if (!s->details) {
+ s->details = details;
+ ao2_ref(s->details, 1);
+ }
details->id = s->id = ast_atomic_fetchadd_int(&faxregistry.nextsessionname, 1);
More information about the asterisk-commits
mailing list