From: Michael Wallner Date: Thu, 22 Jan 2015 15:04:54 +0000 (+0100) Subject: no addref X-Git-Tag: release-2.0.0RC1~20 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-propro;a=commitdiff_plain;h=570d20ee590ab1b9636272be745ab1bb73bbc683 no addref --- 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; }