[nautilus/gnome-3-26] nautilus-window-slot: clear and unset window action group on dispose



commit 70d1793389289cdda7515bb84ff3449f8911377e
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Tue Mar 13 16:51:11 2018 +0100

    nautilus-window-slot: clear and unset window action group on dispose

 src/nautilus-window-slot.c | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index a9911ee6c..9ba7ed5da 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -2817,6 +2817,15 @@ nautilus_window_slot_dispose (GObject *object)
 
     g_clear_pointer (&priv->find_mount_cancellable, g_cancellable_cancel);
 
+    if (priv->window)
+    {
+        gtk_widget_insert_action_group (GTK_WIDGET (priv->window), "slot", NULL);
+        priv->window = NULL;
+    }
+
+    g_free (priv->title);
+    priv->title = NULL;
+
     free_location_change (self);
 
     G_OBJECT_CLASS (nautilus_window_slot_parent_class)->dispose (object);


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