[zaptel-commits] kpfleming: branch mogorman/zaptel-1.2-transcoder r2052 - /team/mogorman/zapte...

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Wed Jan 31 09:50:48 MST 2007


Author: kpfleming
Date: Wed Jan 31 10:50:47 2007
New Revision: 2052

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2052
Log:
forget we had a reference once we have cleared it

Modified:
    team/mogorman/zaptel-1.2-transcoder/zttranscode.c

Modified: team/mogorman/zaptel-1.2-transcoder/zttranscode.c
URL: http://svn.digium.com/view/zaptel/team/mogorman/zaptel-1.2-transcoder/zttranscode.c?view=diff&rev=2052&r1=2051&r2=2052
==============================================================================
--- team/mogorman/zaptel-1.2-transcoder/zttranscode.c (original)
+++ team/mogorman/zaptel-1.2-transcoder/zttranscode.c Wed Jan 31 10:50:47 2007
@@ -354,8 +354,10 @@
 		break;
 	case ZT_TCOP_RELEASE:
 		ret = ztc->parent->operation(ztc, ZT_TCOP_RELEASE);
-		if (ztc->have_reference)
+		if (ztc->have_reference) {
 			module_put(ztc->parent->owner);
+			ztc->have_reference = 0;
+		}
 		break;
 	case ZT_TCOP_TRANSCODE:
 		if (!ztc->parent->operation)



More information about the zaptel-commits mailing list