[nautilus] places-sidebar: don't double unref GMount objects



commit 5e26371335161b38d68583370cfcd8b84d274b01
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri May 4 14:38:43 2012 -0400

    places-sidebar: don't double unref GMount objects
    
    Fixes a lot of reported crashers with NFS/Samba volumes.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674659

 src/nautilus-places-sidebar.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index 3eb8606..fbc0e24 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -766,7 +766,7 @@ update_places (NautilusPlacesSidebar *sidebar)
 		root = g_mount_get_default_location (mount);
 
 		if (!g_file_is_native (root)) {
-			network_mounts = g_list_prepend (network_mounts, g_object_ref (mount));
+			network_mounts = g_list_prepend (network_mounts, mount);
 			continue;
 		}
 
@@ -848,7 +848,6 @@ update_places (NautilusPlacesSidebar *sidebar)
 			   name, icon, mount_uri,
 			   NULL, NULL, mount, 0, tooltip);
 		g_object_unref (root);
-		g_object_unref (mount);
 		g_object_unref (icon);
 		g_free (name);
 		g_free (mount_uri);



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