[nautilus/gnome-2-28] Don't leak NautilusDirectory



commit 449ad015c184d4ce0693b8dd51def8fe1b595870
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Dec 8 16:28:30 2009 +0100

    Don't leak NautilusDirectory
    (cherry picked from commit 2d61fcdf4987802441b7d9dab5364a28fb2dbd7c)

 libnautilus-private/nautilus-file.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index 7dd6c94..23643de 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -6634,6 +6634,8 @@ nautilus_file_get_volume_free_space (NautilusFile *file)
 						    get_fs_free_cb,
 						    directory); /* Inherits ref */
 		g_object_unref (location);
+	} else {
+		nautilus_directory_unref (directory);
 	}
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]