aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/menus/gal-view-collection.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/widgets/menus/gal-view-collection.c b/widgets/menus/gal-view-collection.c
index 60c95a6a60..2702012fe0 100644
--- a/widgets/menus/gal-view-collection.c
+++ b/widgets/menus/gal-view-collection.c
@@ -275,8 +275,10 @@ load_single_dir (GalViewCollection *collection,
char *filename = g_concat_dir_and_file(dir, "galview.xml");
doc = xmlParseFile(filename);
- if (!doc)
+ if (!doc) {
+ g_free (filename);
return;
+ }
root = xmlDocGetRootElement(doc);
for (child = root->xmlChildrenNode; child; child = child->next) {
gchar *id = e_xml_get_string_prop_by_name(child, "id");