26 lines
996 B
Diff
26 lines
996 B
Diff
From f7f3ec60d0136e3b68a304fb0e0e049c0d598df0 Mon Sep 17 00:00:00 2001
|
|
From: shao_xuehua <shao_xuehua@hoperun.com>
|
|
Date: Fri, 5 May 2023 15:59:58 +0800
|
|
Subject: [PATCH] Fix double-free when closing the input chooser dialog
|
|
|
|
---
|
|
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 6746620..0e41481 100644
|
|
--- a/panels/region/cc-input-chooser.c
|
|
+++ b/panels/region/cc-input-chooser.c
|
|
@@ -953,7 +953,7 @@ get_locale_infos (GtkWidget *chooser)
|
|
info->name = g_strdup (C_("Input Source", "Other"));
|
|
info->unaccented_name = g_strdup ("");
|
|
info->untranslated_name = g_strdup ("");
|
|
- g_hash_table_replace (priv->locales, info->id, info);
|
|
+ g_hash_table_replace (priv->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);
|
|
--
|
|
2.20.1
|
|
|