diff options
author | Ray Strode <rstrode@redhat.com> | 2020-09-15 11:28:48 -0400 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2020-11-02 18:22:47 +0000 |
commit | 5b4844aeeb2430a5e9b20ef4148cecd13b418357 (patch) | |
tree | 935cfebf8ccc709dd2892ff98e46f54000defcd8 /daemon | |
parent | 97ca4b1268e78a21041d9fda9512b892ce344d92 (diff) | |
download | gdm-5b4844aeeb2430a5e9b20ef4148cecd13b418357.tar.gz |
xdmcp-display-factory: Clear launch environment when done with it
The XDMCP disply factory examines the sessions of its displays'
launch environments when the displays change status.
Unfortunately it leaks a reference to the launch environment when
doing that.
This commit fixes the reference leak which leads to an fd leak.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gdm-xdmcp-display-factory.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/gdm-xdmcp-display-factory.c b/daemon/gdm-xdmcp-display-factory.c index 220ee3af..ce8f026e 100644 --- a/daemon/gdm-xdmcp-display-factory.c +++ b/daemon/gdm-xdmcp-display-factory.c @@ -2118,6 +2118,8 @@ on_display_status_changed (GdmDisplay *display, g_assert_not_reached (); break; } + + g_clear_object (&launch_environment); } static GdmDisplay * |