summaryrefslogtreecommitdiff
path: root/src/items.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-09-20 12:39:45 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-09-20 12:39:45 +0200
commit6a65e34e42cb584d470f84a7b3760f289d11c0a2 (patch)
treed2718c7f46083a5ce0b4a8fc5d68052dbd830b00 /src/items.c
parentd22dae58ba7e18ffdcac5f13ab9675eb1776c692 (diff)
downloadcataract-6a65e34e42cb584d470f84a7b3760f289d11c0a2.tar.xz
Plug some memory leaks
Diffstat (limited to 'src/items.c')
-rw-r--r--src/items.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/items.c b/src/items.c
index 33311fd..f41e087 100644
--- a/src/items.c
+++ b/src/items.c
@@ -64,9 +64,11 @@ parse_album_xml (const gchar *filename, TAlbum *index)
index->type = GALLERY_TYPE_ALBUM;
else {
log_error ("Invalid gallery type (%s)\n", gallery_type);
+ g_free (gallery_type);
g_free (index);
return FALSE;
}
+ g_free (gallery_type);
/* Section General */
index->ID = xml_file_get_node_value (xml, "/gallery/general/ID/text()");