[gnome-control-center] network: Fix possible crash when changing airplane mode



commit e9294e5cc7c13c534d7779fc1f622b6c7df2867c
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jun 29 13:42:36 2015 +0200

    network: Fix possible crash when changing airplane mode
    
    When changing the airplane mode, either from the Bluetooth panel, or
    through gnome-shell's status menu, we would receive signals from the
    Rfkill gnome-settings-daemon service, even after the network panel was
    closed, as we didn't unref' it. Except that the panel was mostly gone.
    So splat.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751482

 panels/network/cc-network-panel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index d423d2e..1f09613 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -231,6 +231,7 @@ cc_network_panel_dispose (GObject *object)
                 g_cancellable_cancel (priv->cancellable);
 
         g_clear_object (&priv->cancellable);
+        g_clear_object (&priv->rfkill_proxy);
         g_clear_object (&priv->builder);
         g_clear_object (&priv->client);
         g_clear_object (&priv->modem_manager);


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