user-accounts: Fix possible crasher
When the current locale isn't in the list of languages used by other users.
This commit is contained in:
parent
f45a46c312
commit
a3c2f534ce
1 changed files with 3 additions and 2 deletions
|
@ -125,8 +125,9 @@ new_ht_for_user_languages (void)
|
|||
char *language;
|
||||
language = gdm_get_language_from_name (name, NULL);
|
||||
g_hash_table_insert (ht, name, language);
|
||||
}
|
||||
g_free (name);
|
||||
} else {
|
||||
g_free (name);
|
||||
}
|
||||
|
||||
return ht;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue