diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-04-03 12:55:18 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-04-03 12:55:18 +0800 |
commit | c62c3c13a1901160d468f122c0124c6e51c45a78 (patch) | |
tree | 0c2ff4770002ee94519b9e2cc12a9a084fe708ef | |
parent | 164f34f40db295af3ef4151620598a4f384973dc (diff) | |
download | gsoc2013-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
-rw-r--r-- | widgets/menus/gal-view-collection.c | 4 |
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"); |