[gdm/gnome-3-14] manager: make sure to explicitly close user sessions in dispose



commit c930d49d037c78651156bf5cf7f9c421bc9d8eeb
Author: Ray Strode <rstrode redhat com>
Date:   Wed Mar 4 11:17:05 2015 -0500

    manager: make sure to explicitly close user sessions in dispose
    
    We don't want ref count leaks to lead to unkilled sessions.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=745975

 daemon/gdm-manager.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index 54de369..e572daa 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -2315,6 +2315,10 @@ gdm_manager_dispose (GObject *object)
         g_clear_object (&manager->priv->local_factory);
         g_hash_table_unref (manager->priv->open_reauthentication_requests);
         g_hash_table_unref (manager->priv->transient_sessions);
+
+        g_list_foreach (manager->priv->user_sessions,
+                        (GFunc) gdm_session_close,
+                        NULL);
         g_list_free_full (manager->priv->user_sessions, (GDestroyNotify) g_object_unref);
         manager->priv->user_sessions = NULL;
 


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