Fixed a couple of memory leaks in the response_received_cb,
when parsing the XML.
/* 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) {
/* 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_object_set (movie_info, cur_node->name, value, NULL);
list = generate_list (nodeset);
}
list = generate_list (nodeset);
}
- xmlXPathFreeNodeSetList (xpath_obj);
+ xmlXPathFreeObject (xpath_obj);
xmlXPathFreeContext (context_ptr);
xmlFreeDoc (document);
xmlXPathFreeContext (context_ptr);
xmlFreeDoc (document);
}
g_signal_emit (self, signals[RESPONSE_RECEIVED], 0, list);
}
g_signal_emit (self, signals[RESPONSE_RECEIVED], 0, list);