char * content;
content = xmlNodeGetContent (child->xmlChildrenNode);
if (!xmlStrcmp (child->name, "id"))
- entry->id = content;
+ entry->id = atom_id_new (content);
else if (!xmlStrcmp (child->name, "title"))
- entry->title = content;
+ entry->title = g_strdup (content);
else if (!xmlStrcmp (child->name, "summary"))
- entry->summary = content;
+ entry->summary = g_strdup (content);
else if (!xmlStrcmp (child->name, "author"))
- atom_entry_author_add (entry, atom_person_new_from_xmlnode (child));
+ atom_entry_author_add (entry, atom_person_new_from_xmlnode (child));
else
- xmlFree (content);
+ xmlFree (content);
}
return entry;
}
if (entry->doc)
xmlFreeDoc (entry->doc);
if (entry->id)
- g_free (entry->id);
+ atom_id_delete (entry->id);
if (entry->title)
g_free (entry->title);
if (entry->authors)