summaryrefslogtreecommitdiff
path: root/backends/markup-tree.c
diff options
context:
space:
mode:
authorRay Strode <halfline@gnome.org>2007-12-02 23:54:24 +0000
committerRay Strode <halfline@src.gnome.org>2007-12-02 23:54:24 +0000
commit667ca03003933deb0da6d5806ed64a9622fdd2c5 (patch)
tree22090d94315107af706b9361b9660629ca32ecaf /backends/markup-tree.c
parent249796e59ace3c5b1739778d12a7eefb3ed1e2dc (diff)
downloadgconf-667ca03003933deb0da6d5806ed64a9622fdd2c5.tar.gz
Plug a few leaks found and fixed by Matthias Clasen (bug 475970)
2007-12-02 Ray Strode <halfline@gnome.org> Plug a few leaks found and fixed by Matthias Clasen (bug 475970) * gconf/gconf-database.c (gconf_database_notify_listeners): Clean up list of dead listeners * backends/xml-cache.c (cache_sync): clean up temporary list of syncs when we're done with it. * backends/markup-tree.c (markup_dir_free): free markup dir's list of entries before freeing the markup dir svn path=/trunk/; revision=2497
Diffstat (limited to 'backends/markup-tree.c')
-rw-r--r--backends/markup-tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/markup-tree.c b/backends/markup-tree.c
index ac69c0c7..8b9542e8 100644
--- a/backends/markup-tree.c
+++ b/backends/markup-tree.c
@@ -263,6 +263,7 @@ markup_dir_free (MarkupDir *dir)
tmp = tmp->next;
}
+ g_slist_free (dir->entries);
tmp = dir->subdirs;
while (tmp)
@@ -273,6 +274,7 @@ markup_dir_free (MarkupDir *dir)
tmp = tmp->next;
}
+ g_slist_free (dir->subdirs);
g_free (dir->name);