Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit fc210fa449ff01a6afc4e188a3de79601a252b69 1 parent 80a00ba
@chobie authored
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.