[nautilus] Don't leak NautilusFile for bookmarks in places sidebar



commit d781d414e40840422c201dd61637135358c75ab3
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Mar 25 16:14:28 2011 +0100

    Don't leak NautilusFile for bookmarks in places sidebar

 src/nautilus-places-sidebar.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index 0d032e3..cfccaa8 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -616,6 +616,7 @@ update_places (NautilusPlacesSidebar *sidebar)
 			nautilus_file_unref (file);
 			continue;
 		}
+		nautilus_file_unref (file);
 
 		bookmark_name = nautilus_bookmark_get_name (bookmark);
 		icon = nautilus_bookmark_get_icon (bookmark);



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