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



commit acfc79b28e7c09398df245de2bbfa429367cc03b
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 4bb6cdd..8aa024f 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -233,6 +233,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]