[gdm] session: clean up outside dbus server on finalize



commit 9d750b790084ec15b3cb452ff480ed636da16a5c
Author: Ray Strode <rstrode redhat com>
Date:   Mon Jul 29 10:14:08 2013 -0400

    session: clean up outside dbus server on finalize
    
    Just a small leak fix.

 daemon/gdm-session.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index 9f79460..cf332a6 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -3010,6 +3010,11 @@ gdm_session_dispose (GObject *object)
                 g_clear_object (&self->priv->worker_server);
         }
 
+        if (self->priv->outside_server != NULL) {
+                g_dbus_server_stop (self->priv->outside_server);
+                g_clear_object (&self->priv->outside_server);
+        }
+
         if (self->priv->environment != NULL) {
                 g_hash_table_destroy (self->priv->environment);
                 self->priv->environment = NULL;


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