Skip to content

Commit e879ead

Browse files
committed
Cleaner
1 parent b3e3369 commit e879ead

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ext/mbstring/mbstring.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,10 +1165,8 @@ PHP_RSHUTDOWN_FUNCTION(mbstring)
11651165
MBSTRG(outconv_state) = 0;
11661166

11671167
if (MBSTRG(all_encodings_list)) {
1168-
if (GC_DELREF(MBSTRG(all_encodings_list)) == 0) {
1169-
/* must be *array* destroy to remove from GC root buffer and free the hashtable itself */
1170-
zend_array_destroy(MBSTRG(all_encodings_list));
1171-
}
1168+
/* must be *array* release to remove from GC root buffer and free the hashtable itself */
1169+
zend_array_release(MBSTRG(all_encodings_list));
11721170
MBSTRG(all_encodings_list) = NULL;
11731171
}
11741172

0 commit comments

Comments
 (0)