From 570d20ee590ab1b9636272be745ab1bb73bbc683 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 22 Jan 2015 16:04:54 +0100 Subject: [PATCH] no addref --- php_propro.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/php_propro.c b/php_propro.c index ba854e6..090b0da 100644 --- a/php_propro.c +++ b/php_propro.c @@ -43,7 +43,7 @@ php_property_proxy_t *php_property_proxy_init(zval *container, zend_string *memb void php_property_proxy_free(php_property_proxy_t **proxy) { if (*proxy) { - zval_ptr_dtor( &(*proxy)->container); + zval_ptr_dtor(&(*proxy)->container); zend_string_release((*proxy)->member); efree(*proxy); *proxy = NULL; @@ -59,7 +59,6 @@ zval *php_property_proxy_zval(zval *container, zend_string *member) proxy_obj = php_property_proxy_object_new_ex(NULL, proxy); ZVAL_OBJ(&proxy_obj->myself, &proxy_obj->zo); - Z_ADDREF(proxy_obj->myself); return &proxy_obj->myself; } -- 2.30.2