aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-04-03 12:55:18 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-04-03 12:55:18 +0800
commitc62c3c13a1901160d468f122c0124c6e51c45a78 (patch)
tree0c2ff4770002ee94519b9e2cc12a9a084fe708ef /widgets/menus
parent164f34f40db295af3ef4151620598a4f384973dc (diff)
downloadgsoc2013-evolution-c62c3c13a1901160d468f122c0124c6e51c45a78.tar
gsoc2013-evolution-c62c3c13a1901160d468f122c0124c6e51c45a78.tar.gz
gsoc2013-evolution-c62c3c13a1901160d468f122c0124c6e51c45a78.tar.bz2
gsoc2013-evolution-c62c3c13a1901160d468f122c0124c6e51c45a78.tar.lz
gsoc2013-evolution-c62c3c13a1901160d468f122c0124c6e51c45a78.tar.xz
gsoc2013-evolution-c62c3c13a1901160d468f122c0124c6e51c45a78.tar.zst
gsoc2013-evolution-c62c3c13a1901160d468f122c0124c6e51c45a78.zip
Ahem, free the xmlDoc. (load_single_dir): Free the filename if we return
2001-04-02 Federico Mena Quintero <federico@ximian.com> * 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
Diffstat (limited to 'widgets/menus')
-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");