/* We use the loop to append each property to the movie object */
for (cur_node = node; cur_node; cur_node = cur_node->next) {
if (cur_node->type == XML_ELEMENT_NODE) {
- const gchar *value = xmlNodeGetContent (cur_node);
+ gchar *value = xmlNodeGetContent (cur_node);
g_object_set (movie_info, cur_node->name, value, NULL);
+ g_free (value);
}
}
return movie_info;
list = generate_list (nodeset);
}
- xmlXPathFreeNodeSetList (xpath_obj);
+ xmlXPathFreeObject (xpath_obj);
xmlXPathFreeContext (context_ptr);
xmlFreeDoc (document);
}
g_signal_emit (self, signals[RESPONSE_RECEIVED], 0, list);
-
- g_list_free (list);
}
static gchar *