[gnome-control-center] user-accounts: Fix possible crasher
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: Fix possible crasher
- Date: Wed, 26 Jan 2011 18:23:20 +0000 (UTC)
commit a3c2f534ce4f7e8c54814881ae112747f5549d85
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jan 26 18:21:46 2011 +0000
user-accounts: Fix possible crasher
When the current locale isn't in the list of languages used
by other users.
panels/user-accounts/um-language-dialog.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/panels/user-accounts/um-language-dialog.c b/panels/user-accounts/um-language-dialog.c
index b79749b..6eddbc4 100644
--- a/panels/user-accounts/um-language-dialog.c
+++ b/panels/user-accounts/um-language-dialog.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]