window-slot: Free bindings on dispose

We were leaking them.
This commit is contained in:
Carlos Soriano 2018-07-19 16:07:50 +02:00 committed by Carlos Soriano
parent 0fcb4dfea6
commit 28f2922a91

View file

@ -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));