--- gdm-2.19.3/gui/gdmlanguages.c.orig	2007-07-09 10:01:31.597994000 +0900
+++ gdm-2.19.3/gui/gdmlanguages.c	2007-07-09 10:29:32.195495000 +0900
@@ -804,6 +804,8 @@ selection_changed (GtkTreeSelection *sel
     {
       g_free (dialog_selected_language);
       gtk_tree_model_get (GTK_TREE_MODEL (lang_model), &iter, LOCALE_COLUMN, &dialog_selected_language, -1);
+      if (dialog_selected_language)
+        dialog_selected_language = g_strdup (dialog_selected_language);
     }
 }
 
@@ -820,6 +822,8 @@ tree_row_activated (GtkTreeView         
       gtk_tree_model_get (GTK_TREE_MODEL (lang_model), &iter,
 			  LOCALE_COLUMN, &dialog_selected_language,
 			  -1);
+      if (dialog_selected_language)
+        dialog_selected_language = g_strdup (dialog_selected_language);
       gtk_dialog_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
   }
 }
