summaryrefslogtreecommitdiff
path: root/src/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup.c')
-rw-r--r--src/setup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/setup.c b/src/setup.c
index 1481be6..31bd5ca 100644
--- a/src/setup.c
+++ b/src/setup.c
@@ -131,6 +131,9 @@ parse_setup_xml (const char *filename, TGallerySetup *setup)
setup->nofullsize = xml_file_get_node_present (xml, "/gallery_setup/images/nofullsize");
+ setup->favicon_file = xml_file_get_node_value (xml, "/gallery_setup/meta/favicon/text()");
+ setup->favicon_type = xml_file_get_node_attribute (xml, "/gallery_setup/meta/favicon", "type");
+
xml_parser_close (xml);
#ifdef __DEBUG_ALL__
@@ -256,6 +259,10 @@ free_setup_data (TGallerySetup *setup)
free (setup->site_title);
if (setup->add_copyright)
free (setup->add_copyright);
+ if (setup->favicon_file)
+ free (setup->favicon_file);
+ if (setup->favicon_type)
+ free (setup->favicon_type);
free (setup);
setup = NULL;
}