diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-05-04 14:38:43 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-05-04 14:42:39 -0400 |
commit | 4e59e4cfc7bc68534664d9f72d0c7ea680b79db3 (patch) | |
tree | 3cb3cc6b69f6a5cd3e6a07f065ea5c7c70683b4b | |
parent | c5b336f62e4d5efb330306cf9a905e70e7553171 (diff) | |
download | nautilus-4e59e4cfc7bc68534664d9f72d0c7ea680b79db3.tar.gz |
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
-rw-r--r-- | 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 61f365848..672a4b0ab 100644 --- a/src/nautilus-places-sidebar.c +++ b/src/nautilus-places-sidebar.c @@ -774,7 +774,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; } @@ -856,7 +856,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); |