Skip to content

Commit 8e01517

Browse files
committed
[ci skip] Fix inaccurate comment
1 parent 0561783 commit 8e01517

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/dom/parentnode.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,8 @@ void dom_child_replace_with(dom_object *context, zval *nodes, uint32_t nodesc)
566566
if (newchild) {
567567
xmlNodePtr last = fragment->last;
568568

569-
/* Unlink and free it unless it became a part of the fragment. */
569+
/* Unlink it unless it became a part of the fragment.
570+
* Freeing will be taken care of by the lifetime of the returned dom object. */
570571
if (child->parent != fragment) {
571572
xmlUnlinkNode(child);
572573
}

0 commit comments

Comments
 (0)