diff options
Diffstat (limited to 'Zend/zend_objects.c')
-rw-r--r-- | Zend/zend_objects.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_objects.c b/Zend/zend_objects.c index 2a0655b258..91bb603de4 100644 --- a/Zend/zend_objects.c +++ b/Zend/zend_objects.c @@ -57,6 +57,8 @@ ZEND_API void zend_object_std_dtor(zend_object *object) if (object->properties) { if (EXPECTED(!(GC_FLAGS(object->properties) & IS_ARRAY_IMMUTABLE))) { if (EXPECTED(--GC_REFCOUNT(object->properties) == 0)) { + GC_REMOVE_FROM_BUFFER(object->properties); + GC_TYPE_INFO(object->properties) = IS_NULL | (GC_WHITE << 16); zend_array_destroy(object->properties); } } |