[libxml2] Clarify the need to use xmlFreeNode after xmlUnlinkNode



commit a6b14bf9fde119e85056ac82a358ddb4fe2aa12d
Author: Daniel Veillard <veillard redhat com>
Date:   Thu Jan 26 17:44:35 2012 +0800

    Clarify the need to use xmlFreeNode after xmlUnlinkNode
    
    Just add one small sentence to the xmlUnlinkNode function comments

 tree.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tree.c b/tree.c
index 24db82a..a2fdcbf 100644
--- a/tree.c
+++ b/tree.c
@@ -3732,6 +3732,8 @@ xmlFreeNode(xmlNodePtr cur) {
  * @cur:  the node
  *
  * Unlink a node from it's current context, the node is not freed
+ * If one need to free the node, use xmlNodeFree() routine after the
+ * unlink.
  */
 void
 xmlUnlinkNode(xmlNodePtr cur) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]