From 09753adfa680bc76fb24bd61c6136292ae8a57dc Mon Sep 17 00:00:00 2001 From: Andrea Azzarone Date: Tue, 9 Oct 2018 11:58:08 +0100 Subject: [PATCH] region: Fix double-free when closing the input chooser dialog Fixes: GNOME/gnome-control-center#225 --- panels/region/cc-input-chooser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/region/cc-input-chooser.c b/panels/region/cc-input-chooser.c index fcc55b8fa..5cf3e25a4 100644 --- a/panels/region/cc-input-chooser.c +++ b/panels/region/cc-input-chooser.c @@ -940,7 +940,7 @@ get_locale_infos (CcInputChooser *chooser) info->name = g_strdup (C_("Input Source", "Other")); info->unaccented_name = g_strdup (""); info->untranslated_name = g_strdup (""); - g_hash_table_replace (chooser->locales, info->id, info); + g_hash_table_replace (chooser->locales, g_strdup(info->id), info); info->layout_rows_by_id = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, g_object_unref);