[gnome-initial-setup] Fix a crash when finalizing the language chooser



commit ac113f46cbf0e99a21c8c05842b9e9fcb8cece8d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Mar 1 12:36:02 2014 -0500

    Fix a crash when finalizing the language chooser

 .../pages/language/cc-language-chooser.c           |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/pages/language/cc-language-chooser.c 
b/gnome-initial-setup/pages/language/cc-language-chooser.c
index e461be9..e3fdeb9 100644
--- a/gnome-initial-setup/pages/language/cc-language-chooser.c
+++ b/gnome-initial-setup/pages/language/cc-language-chooser.c
@@ -228,7 +228,7 @@ add_one_language (CcLanguageChooser *chooser,
                g_free (lang);
                return;
        }
-       g_hash_table_add (priv->langs, lang);
+       g_hash_table_add (priv->langs, g_strdup (lang));
 
        widget = language_widget_new (locale_id, lang, !is_initial);
        gtk_container_add (GTK_CONTAINER (priv->language_list), widget);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]