commit | a70d62f2962c076c52ebaea91a4781927bcec376 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@src.gnome.org> | Thu Nov 07 14:18:03 2002 +0000 |
committer | Daniel Veillard <veillard@src.gnome.org> | Thu Nov 07 14:18:03 2002 +0000 |
tree | 527043fc5bf9f1ff50954253721b6c85ef155455 | |
parent | b8e99cc1068fb3bdf980ef4a560cedb39012507f [diff] [blame] |
make xmlFreeNode() handle attributes correctly. Daniel * tree.c: make xmlFreeNode() handle attributes correctly. Daniel
diff --git a/tree.c b/tree.c index 9226730..44ea7a5 100644 --- a/tree.c +++ b/tree.c
@@ -2653,6 +2653,10 @@ xmlFreeNs((xmlNsPtr) cur); return; } + if (cur->type == XML_ATTRIBUTE_NODE) { + xmlFreeProp((xmlAttrPtr) cur); + return; + } if ((cur->children != NULL) && (cur->type != XML_ENTITY_REF_NODE)) xmlFreeNodeList(cur->children);