From e5a529df046df9029e32e306c73684e16888e7b3 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 18 Oct 2009 13:59:14 +0200 Subject: Plug memory leaks --- src/items.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 -- cgit v1.2.3