[gdm] greeter-server: implement stop function
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] greeter-server: implement stop function
- Date: Fri, 24 Jun 2011 19:43:56 +0000 (UTC)
commit 8c5f0a79ffe0ceb876517802f5303004f3d5bd0f
Author: Ray Strode <rstrode redhat com>
Date: Wed May 18 14:46:33 2011 -0400
greeter-server: implement stop function
The stop function was previously just empty,
which led to litter in /tmp.
daemon/gdm-greeter-server.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-greeter-server.c b/daemon/gdm-greeter-server.c
index 5dd3c8f..4c40a4e 100644
--- a/daemon/gdm-greeter-server.c
+++ b/daemon/gdm-greeter-server.c
@@ -1090,6 +1090,13 @@ gdm_greeter_server_stop (GdmGreeterServer *greeter_server)
g_debug ("GreeterServer: Stopping greeter server...");
+ dbus_server_disconnect (greeter_server->priv->server);
+ dbus_server_unref (greeter_server->priv->server);
+ greeter_server->priv->server = NULL;
+
+ g_free (greeter_server->priv->server_address);
+ greeter_server->priv->server_address = NULL;
+
return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]