[accounts-dialog] Fix a crash when opening the language dialog
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [accounts-dialog] Fix a crash when opening the language dialog
- Date: Thu, 14 Jan 2010 02:36:54 +0000 (UTC)
commit c8fac93852d2f4f34a1f3043c55bd861592f6ac8
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 13 21:34:28 2010 -0500
Fix a crash when opening the language dialog
Can't free name here, since it is used as key in the hash table.
src/um-language-dialog.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/um-language-dialog.c b/src/um-language-dialog.c
index 3e1fe1f..b9bdd5b 100644
--- a/src/um-language-dialog.c
+++ b/src/um-language-dialog.c
@@ -315,7 +315,6 @@ add_user_languages (GtkListStore *store)
gtk_list_store_append (store, &iter);
gtk_list_store_set (store, &iter, LOCALE_COL, name, DISPLAY_LOCALE_COL, language, -1);
- g_free (name);
g_free (language);
}
@@ -519,7 +518,7 @@ um_language_dialog_set_user (UmLanguageDialog *um,
}
um->user = user;
if (um->user) {
- const char *language;
+ const gchar *language;
g_object_ref (user);
@@ -534,7 +533,7 @@ um_language_dialog_set_user (UmLanguageDialog *um,
language = um_user_get_language (user);
if (language) {
- select_language (um, um_user_get_language (user));
+ select_language (um, language);
} else {
const char *locale;
char *lang;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]