From: Etienne Kneuss Date: Sun, 2 Aug 2009 21:21:46 +0000 (+0000) Subject: Addref on clone as well X-Git-Tag: php-5.4.0alpha1~191^2~2884 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f52cd698a2c64c30839de3cda1806a26ea95d8ed;p=php Addref on clone as well --- diff --git a/ext/spl/spl_dllist.c b/ext/spl/spl_dllist.c index 82975568a3..9d82f2d0f9 100644 --- a/ext/spl/spl_dllist.c +++ b/ext/spl/spl_dllist.c @@ -383,6 +383,7 @@ static zend_object_value spl_dllist_object_new_ex(zend_class_entry *class_type, intern->llist = (spl_ptr_llist *)spl_ptr_llist_init(other->llist->ctor, other->llist->dtor); spl_ptr_llist_copy(other->llist, intern->llist TSRMLS_CC); intern->traverse_pointer = intern->llist->head; + SPL_LLIST_CHECK_ADDREF(intern->traverse_pointer); } else { intern->llist = other->llist; intern->traverse_pointer = intern->llist->head;