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

commit 8fc77277be94388774c2dd96192a7a1a8cf58710
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.

 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]