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



commit ed9545671535ccaf5729000a5abcd34eb38ccff3
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 cd8385e..81e9c0b 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]