diff options
Diffstat (limited to 'src/items.c')
| -rw-r--r-- | src/items.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/items.c b/src/items.c index c21ce64..83c5368 100644 --- a/src/items.c +++ b/src/items.c @@ -107,11 +107,14 @@ parse_album_xml (const gchar *filename, TAlbum *index) s = g_strdup_printf ("/gallery/items/*[%d]", i + 1); node_name = xml_file_get_node_name (xml, s); + g_free (s); if (! node_name) continue; if (strcmp (node_name, "item") == 0) { item->type = INDEX_ITEM_TYPE_PICTURE; + + s = g_strdup_printf ("/gallery/items/*[%d]", i + 1); if (index->type == GALLERY_TYPE_INDEX) item->path = xml_file_get_node_attribute (xml, s, "path"); else |
