summaryrefslogtreecommitdiff
path: root/daemon/gdm-x-session.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2016-02-05 10:42:20 -0500
committerRay Strode <rstrode@redhat.com>2016-02-05 10:42:20 -0500
commit7b9798030f13b3035403efd0b271f866ae4de53d (patch)
treed1f8e5aca2b0aa262325bc6ee587ee23be2e9a94 /daemon/gdm-x-session.c
parent99eeae91c1f11997521ad3bc016a7b2d23ec7942 (diff)
downloadgdm-7b9798030f13b3035403efd0b271f866ae4de53d.tar.gz
gdm-x-session: fix tiny leak in error path
I wasn't cleaning up the dbus connection in out: so it leaked in an error path. Spotted by Michael Catanzaro
Diffstat (limited to 'daemon/gdm-x-session.c')
-rw-r--r--daemon/gdm-x-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gdm-x-session.c b/daemon/gdm-x-session.c
index c01cc5ee..41e41184 100644
--- a/daemon/gdm-x-session.c
+++ b/daemon/gdm-x-session.c
@@ -496,10 +496,10 @@ spawn_bus (State *state,
}
g_variant_unref (reply);
- g_clear_object (&connection);
is_running = TRUE;
out:
+ g_clear_object (&connection);
g_clear_object (&data_stream);
g_clear_object (&subprocess);
g_clear_object (&launcher);