[gnome-control-center] region: Fix double-free when closing the input chooser dialog
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] region: Fix double-free when closing the input chooser dialog
- Date: Tue, 9 Oct 2018 20:13:57 +0000 (UTC)
commit 09753adfa680bc76fb24bd61c6136292ae8a57dc
Author: Andrea Azzarone <andrea azzarone canonical com>
Date: Tue Oct 9 11:58:08 2018 +0100
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]