From: Thadeu Lima de Souza Cascardo Date: Sun, 10 Aug 2008 04:40:04 +0000 (-0300) Subject: Return a copy of the internal node, caller is the owner X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fatompub.git;a=commitdiff_plain;h=38fb7d00cd8a61798fff2a49d64f634a18cc37a0 Return a copy of the internal node, caller is the owner --- diff --git a/atom/entry.c b/atom/entry.c index eefb3ed..21eae78 100644 --- a/atom/entry.c +++ b/atom/entry.c @@ -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; }