From c62c3c13a1901160d468f122c0124c6e51c45a78 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 3 Apr 2001 04:55:18 +0000 Subject: Ahem, free the xmlDoc. (load_single_dir): Free the filename if we return 2001-04-02 Federico Mena Quintero * gal-view-collection.c (load_single_dir): Ahem, free the xmlDoc. (load_single_dir): Free the filename if we return immediately due to not being able to parse the file. svn path=/trunk/; revision=9121 --- widgets/menus/gal-view-collection.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'widgets/menus/gal-view-collection.c') 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"); -- cgit