[gnome-settings-daemon] updates: Disconnect session proxy signal handler in finalize



commit c984d5a220d38c331dcb56dde71bcace48a2581f
Author: Kalev Lember <kalevlember gmail com>
Date:   Mon May 27 21:35:46 2013 +0200

    updates: Disconnect session proxy signal handler in finalize
    
    The session proxy can outlive the updates plugin, and then call back
    after the updates plugin has already been destroyed, leading to crashes.
    Disconnect the signal handler to fix that.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=700988

 plugins/updates/gsd-updates-refresh.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/updates/gsd-updates-refresh.c b/plugins/updates/gsd-updates-refresh.c
index a21f79c..ebd566f 100644
--- a/plugins/updates/gsd-updates-refresh.c
+++ b/plugins/updates/gsd-updates-refresh.c
@@ -551,6 +551,7 @@ gsd_updates_refresh_finalize (GObject *object)
                 g_source_remove (refresh->priv->periodic_id);
 
         g_signal_handlers_disconnect_by_data (refresh->priv->client, refresh);
+        g_signal_handlers_disconnect_by_data (refresh->priv->proxy_session, refresh);
 
         g_object_unref (refresh->priv->control);
         g_object_unref (refresh->priv->settings);


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