Commit 7e399511 authored by Ray Strode's avatar Ray Strode

manager: plug leak in maybe_activate_other_session

The function asks logind what the currently active session is on the
given seat.  It then leaks the response.

This commit plugs the leak.
parent bfdb201b
......@@ -1424,7 +1424,7 @@ maybe_activate_other_session (GdmManager *self,
GdmDisplay *old_display)
char *seat_id = NULL;
char *session_id;
char *session_id = NULL;
int ret;
g_object_get (G_OBJECT (old_display),
......@@ -1443,6 +1443,8 @@ maybe_activate_other_session (GdmManager *self,
if (display == NULL) {
activate_login_window_session_on_seat (self, seat_id);
g_free (session_id);
g_free (seat_id);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment