Commit 64d7d123 authored by Daniel Veillard's avatar Daniel Veillard

applied patch for replaceNode from Brent Hendricks Daniel

* tree.c: applied patch for replaceNode from Brent Hendricks
Daniel
parent 6c6d3c7f
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
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment