[gtk+] GtkPlacesSidebar: do not unref mount
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkPlacesSidebar: do not unref mount
- Date: Sun, 26 May 2013 04:03:19 +0000 (UTC)
commit b08fe39cd8fbe929e1135e348258ff5f2c898750
Author: Alban Browaeys <prahal yahoo com>
Date: Sat May 25 01:05:13 2013 +0200
GtkPlacesSidebar: do not unref mount
Do not unref mount has we grabbed its pointer without taking
a reference.
Otherwise the following call to g_list_free_full on network_mounts
frees it a second time. Segfault in nautilus ensue.
https://bugzilla.gnome.org/show_bug.cgi?id=700979
gtk/gtkplacessidebar.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index ed6af4a..63f7afe 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -1123,7 +1123,6 @@ update_places (GtkPlacesSidebar *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]