summaryrefslogtreecommitdiff
path: root/src/items.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2010-12-12 17:18:53 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2010-12-12 17:18:53 +0100
commit9d995d59d4868a0ed02dc37892d5f670bd4eb86b (patch)
tree7758b8c834e1601d1a6bc0188b9d437742144c2b /src/items.c
parent9f32e7a3eb5559d1e1b3a5de2c12e3e92ac6af0c (diff)
downloadcataract-9d995d59d4868a0ed02dc37892d5f670bd4eb86b.tar.xz
xml-parser: Cleanup
Diffstat (limited to 'src/items.c')
-rw-r--r--src/items.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/items.c b/src/items.c
index b31e9cd..06864dd 100644
--- a/src/items.c
+++ b/src/items.c
@@ -279,7 +279,7 @@ parse_album_xml (const gchar *filename)
g_free (node_name);
}
- xml_parser_close (xml);
+ xml_parser_free (xml);
return index;
}
@@ -327,7 +327,7 @@ get_album_objects_count (const gchar *filename)
count = xml_file_node_get_children_count (xml, "/gallery/items/item");
hidden = xml_file_node_get_children_count (xml, "/gallery/items/item/hidden");
- xml_parser_close (xml);
+ xml_parser_free (xml);
return (count - hidden);
}
@@ -355,5 +355,5 @@ get_album_titles (const gchar *filename, gchar **title, gchar **description, gch
*thumbnail = xml_file_get_node_attribute (xml, "/gallery/items/item[1]", "preview");
}
- xml_parser_close (xml);
+ xml_parser_free (xml);
}