diff options
author | Alexander Larsson <alexl@redhat.com> | 2007-02-02 15:33:52 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-02-02 15:33:52 +0000 |
commit | ee0e75cce5c3f43e14cdcf7a861c7425132e0166 (patch) | |
tree | e3d309496f134d1f837260230d352374a89bed2d /src/nautilus-application.c | |
parent | 1fba8da746c10aeea6997ff3860a4b6afd9d894d (diff) | |
download | nautilus-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.c | 3 |
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); |