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:
Bastien Nocera 2011-01-26 18:21:46 +00:00
parent f45a46c312
commit a3c2f534ce

View file

@ -125,8 +125,9 @@ new_ht_for_user_languages (void)
char *language; char *language;
language = gdm_get_language_from_name (name, NULL); language = gdm_get_language_from_name (name, NULL);
g_hash_table_insert (ht, name, language); g_hash_table_insert (ht, name, language);
} } else {
g_free (name); g_free (name);
}
return ht; return ht;
} }