Commit 42ae1307 authored by Ray Strode's avatar Ray Strode

manager: fix dangling pointer free

When reauthenticating, we can crash if no login screen
is running on the seat (for instance, when building
with --disable-user-display-server, and not user
switching).  The crash is due to a dangling
pointer.

This commit fixes that.

https://bugzilla.gnome.org/show_bug.cgi?id=786656
parent c683d022
......@@ -2048,8 +2048,8 @@ on_session_reauthenticated (GdmSession *session,
gdm_display_unmanage (display);
gdm_display_finish (display);
}
g_free (session_id);
}
g_free (session_id);
}
/* There should already be a session running, so jump to its
......
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