Don't crash when removing nameless user
https://bugzilla.gnome.org/show_bug.cgi?id=647893
This commit is contained in:
parent
17672accfe
commit
48acc41698
@ -777,7 +777,10 @@ remove_user (GdmUserManager *manager,
|
|||||||
if (gdm_user_get_object_path (user) != NULL) {
|
if (gdm_user_get_object_path (user) != NULL) {
|
||||||
g_hash_table_remove (manager->priv->users_by_object_path, gdm_user_get_object_path (user));
|
g_hash_table_remove (manager->priv->users_by_object_path, gdm_user_get_object_path (user));
|
||||||
}
|
}
|
||||||
g_hash_table_remove (manager->priv->users_by_name, gdm_user_get_user_name (user));
|
|
||||||
|
if (gdm_user_get_user_name (user) != NULL) {
|
||||||
|
g_hash_table_remove (manager->priv->users_by_name, gdm_user_get_user_name (user));
|
||||||
|
}
|
||||||
|
|
||||||
if (manager->priv->is_loaded) {
|
if (manager->priv->is_loaded) {
|
||||||
g_signal_emit (manager, signals[USER_REMOVED], 0, user);
|
g_signal_emit (manager, signals[USER_REMOVED], 0, user);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user