summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-12-30 00:45:45 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-12-30 00:45:45 +0100
commit6323cb7f767ba77458384cb35d27315df9af0cb4 (patch)
tree6d9b33509bbe8993c450fc0a91fbcc1f0f4ac571 /setup.c
parent9d50015682975f1f70e22b4814fe7bf200c60679 (diff)
downloadcataract-6323cb7f767ba77458384cb35d27315df9af0cb4.tar.xz
Retrieve titles and thumbnail from linked album if not defined in index
Fix mem leak
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/setup.c b/setup.c
index 8df399c..5ad4bb3 100644
--- a/setup.c
+++ b/setup.c
@@ -115,6 +115,7 @@ parse_setup_xml (const char *filename, TGallerySetup *setup)
setup->meta_keywords = xml_file_get_node_value (xml, "/gallery_setup/meta/keywords/text()");
s = xml_file_get_node_attribute (xml, "/gallery_setup/images/preload", "value");
setup->preload = s ? strcasecmp (s, "yes") == 0 : TRUE; /* default to TRUE */
+ if (s) g_free (s);
xml_parser_close (xml);