[nautilus] sidebar: don't forget to NULL slot pointer after volume is mounted
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] sidebar: don't forget to NULL slot pointer after volume is mounted
- Date: Thu, 7 Jun 2012 13:48:26 +0000 (UTC)
commit 9b0f510e6b62e9173086d380e45bf7cc6d4326f3
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Jun 7 09:47:06 2012 -0400
sidebar: don't forget to NULL slot pointer after volume is mounted
Or we will hit an assertion when trying to mount another volume later.
https://bugzilla.gnome.org/show_bug.cgi?id=677611
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 d94ed5a..04fe101 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -1806,6 +1806,7 @@ volume_mounted_cb (GVolume *volume,
if (sidebar->go_to_after_mount_slot) {
g_object_remove_weak_pointer (G_OBJECT (sidebar->go_to_after_mount_slot),
(gpointer *) &sidebar->go_to_after_mount_slot);
+ sidebar->go_to_after_mount_slot = NULL;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]