[gnome-control-center] network/proxy: destroy dialog with the class



commit 959d841713baef632a791529b4104a6f8601fa9b
Author: Xiang Fan <sfanxiang gmail com>
Date:   Sat Oct 21 11:24:08 2017 +0800

    network/proxy: destroy dialog with the class
    
    The dialog has several bindings to proxy settings, so it shouldn't
    outlive the proxy class.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788776

 panels/network/net-proxy.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/net-proxy.c b/panels/network/net-proxy.c
index d1b4602..9bf164d 100644
--- a/panels/network/net-proxy.c
+++ b/panels/network/net-proxy.c
@@ -216,6 +216,10 @@ net_proxy_finalize (GObject *object)
 {
         NetProxy *proxy = NET_PROXY (object);
         NetProxyPrivate *priv = proxy->priv;
+        GtkWidget *widget;
+
+        widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "dialog"));
+        gtk_widget_destroy (widget);
 
         g_clear_object (&priv->settings);
         g_clear_object (&priv->builder);


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