summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2016-12-09 13:37:49 +1300
committerRobert Ancell <robert.ancell@canonical.com>2016-12-09 13:37:49 +1300
commitf0b2830d3b0c52213eaace386ec974166af367d5 (patch)
tree93825b4ab7c8c023ba7f3954814e9f5362ab46b6
parent88f71b3432da5c700a00eb1f0f4bef39a9e96646 (diff)
downloadlightdm-git-f0b2830d3b0c52213eaace386ec974166af367d5.tar.gz
Fix incorrect unref in XDMCP code
-rw-r--r--src/xdmcp-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdmcp-server.c b/src/xdmcp-server.c
index bbc11927..b1247a81 100644
--- a/src/xdmcp-server.c
+++ b/src/xdmcp-server.c
@@ -443,7 +443,7 @@ choose_connection (XDMCPPacket *packet, GInetAddress *source_address)
/* Free the local sort array and items */
for (i = 0; i < addresses->len; i++)
g_object_unref (g_array_index (addresses, AddrSortItem, i).address);
- g_object_unref (addresses);
+ g_array_unref (addresses);
return index >= 0 ? &packet->Request.connections[index] : NULL;
}