summaryrefslogtreecommitdiff
path: root/src/nautilus-application.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2007-02-02 15:33:52 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-02-02 15:33:52 +0000
commitee0e75cce5c3f43e14cdcf7a861c7425132e0166 (patch)
treee3d309496f134d1f837260230d352374a89bed2d /src/nautilus-application.c
parent1fba8da746c10aeea6997ff3860a4b6afd9d894d (diff)
downloadnautilus-ee0e75cce5c3f43e14cdcf7a861c7425132e0166.tar.gz
Fix memory leak and fd leak.
2007-02-02 Alexander Larsson <alexl@redhat.com> * src/nautilus-application.c (save_session_to_file): Fix memory leak and fd leak. svn path=/trunk/; revision=12716
Diffstat (limited to 'src/nautilus-application.c')
-rw-r--r--src/nautilus-application.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index d02b80579..70371a134 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1474,6 +1474,9 @@ save_session_to_file (void)
g_free (filename);
filename = NULL;
}
+
+ xmlSaveClose(ctx);
+ close (fd);
out:
xmlFreeDoc (doc);