diff options
Diffstat (limited to 'ext/com/COM.c')
| -rw-r--r-- | ext/com/COM.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/com/COM.c b/ext/com/COM.c index a9d18cec9f..cb60f4d2a8 100644 --- a/ext/com/COM.c +++ b/ext/com/COM.c @@ -335,9 +335,10 @@ static char *php_string_from_clsid(const CLSID *clsid)  	return clsid_str;  } -static void php_comval_destructor(zend_rsrc_list_entry *rsrc) +static void php_comval_destructor(zend_rsrc_list_entry *rsrc TSRMLS_DC)  {  	comval *obj = (comval *)rsrc->ptr; +  	if(C_ISREFD(obj))   	{  		C_REFCOUNT(obj) = 1;  | 
