summaryrefslogtreecommitdiff
path: root/daemon/gdm-session-worker.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/gdm-session-worker.c')
-rw-r--r--daemon/gdm-session-worker.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index ddeb1377..12905171 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -3550,17 +3550,6 @@ gdm_session_worker_init (GdmSessionWorker *worker)
}
static void
-gdm_session_worker_unwatch_child (GdmSessionWorker *worker)
-{
- if (worker->child_watch_id == 0)
- return;
-
- g_source_remove (worker->child_watch_id);
- worker->child_watch_id = 0;
-}
-
-
-static void
gdm_session_worker_finalize (GObject *object)
{
GdmSessionWorker *worker;
@@ -3572,7 +3561,7 @@ gdm_session_worker_finalize (GObject *object)
g_return_if_fail (worker != NULL);
- gdm_session_worker_unwatch_child (worker);
+ g_clear_handle_id (&worker->child_watch_id, g_source_remove);
if (worker->child_pid > 0) {
gdm_signal_pid (worker->child_pid, SIGTERM);