[nautilus/path-bar-templates-and-extensions: 7/8] window-slot: Free bindings on dispose



commit 28f2922a91f76400fa2b3fa2862f710c0b11fab5
Author: Carlos Soriano <csoriano redhat com>
Date:   Thu Jul 19 16:07:50 2018 +0200

    window-slot: Free bindings on dispose
    
    We were leaking them.

 src/nautilus-window-slot.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index b583de81f..a2b0402ac 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -2955,6 +2955,8 @@ nautilus_window_slot_dispose (GObject *object)
 
     nautilus_window_slot_remove_extra_location_widgets (self);
 
+    g_clear_pointer (&priv->searching_binding, g_binding_unbind);
+    g_clear_pointer (&priv->selection_binding, g_binding_unbind);
     if (priv->content_view)
     {
         gtk_widget_destroy (GTK_WIDGET (priv->content_view));


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