1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-12 05:57:47 +03:00

applied patch for replaceNode from Brent Hendricks Daniel

* tree.c: applied patch for replaceNode from Brent Hendricks
Daniel
This commit is contained in:
Daniel Veillard 2005-05-11 18:03:42 +00:00
parent 6c6d3c7f8a
commit 64d7d123a0
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Wed May 11 20:04:09 CEST 2005 Daniel Veillard <daniel@veillard.com>
* tree.c: applied patch for replaceNode from Brent Hendricks
Tue May 10 17:27:52 CEST 2005 Daniel Veillard <daniel@veillard.com>
* tree.c: fixed bug #303682 of a leak reported by Malcolm Rowe

2
tree.c
View File

@ -3469,7 +3469,7 @@ xmlReplaceNode(xmlNodePtr old, xmlNodePtr cur) {
return(old);
}
xmlUnlinkNode(cur);
cur->doc = old->doc;
xmlSetTreeDoc(cur, old->doc);
cur->parent = old->parent;
cur->next = old->next;
if (cur->next != NULL)