summaryrefslogtreecommitdiffstats
path: root/www/pecl-amfext/files/patch-amf.c
blob: 000b580d38d73c52902bbca1f22bea74d358c28f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- ./amf.c.orig	2010-04-12 16:48:28.000000000 -0400
+++ ./amf.c	2010-04-12 16:51:32.000000000 -0400
@@ -1185,7 +1185,7 @@
 		int resultType = AMFC_TYPEDOBJECT;
 		int resultValueLength = 0;
 		zval** resultValue = struc;
-		int deallocResult = (*struc)->refcount;
+		int deallocResult = Z_REFCOUNT_P((*struc));
 
 		resultType = amf_perform_serialize_callback(struc, &className,&classNameLen,&resultValue,var_hash TSRMLS_CC);
 		
@@ -2670,7 +2670,7 @@
 		}
 		else
 		{
-			newval->refcount--;
+			Z_DELREF_P(newval);
 		}
 		*rval = newval;
 	}
OpenPOWER on IntegriCloud