Skip to content
Browse files

fixed #2. forgot to increment specified array's refcount

  • Loading branch information...
1 parent 80a00ba commit fc210fa449ff01a6afc4e188a3de79601a252b69 @chobie committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/php_sundown.c
View
2 src/php_sundown.c
@@ -282,6 +282,8 @@ PHP_METHOD(sundown, __construct)
if (extensions == NULL) {
MAKE_STD_ZVAL(extensions);
array_init(extensions);
+ } else {
+ Z_ADDREF_P(extensions);
}
add_property_zval_ex(getThis(),"extensions",sizeof("extensions"),extensions TSRMLS_CC);
}

0 comments on commit fc210fa

Please sign in to comment.
Something went wrong with that request. Please try again.