Return a copy of the internal node, caller is the owner
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sun, 10 Aug 2008 04:40:04 +0000 (01:40 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sun, 10 Aug 2008 04:40:04 +0000 (01:40 -0300)
atom/entry.c

index eefb3ed..21eae78 100644 (file)
@@ -165,6 +165,6 @@ xmlNodePtr
 atom_entry_to_xmlnode (AtomEntry *entry)
 {
   if (entry->doc)
-    return xmlDocGetRootElement (entry->doc);
+    return xmlCopyNodeList (xmlDocGetRootElement (entry->doc));
   return NULL;
 }