From c04e19d8674b41bb6afe60bf14ba034366d22d4f Mon Sep 17 00:00:00 2001 From: shao_xuehua Date: Fri, 5 May 2023 16:45:12 +0800 Subject: [PATCH] Fix double-free when closing the input chooser dialog --- ...when-closing-the-input-chooser-dialo.patch | 25 +++++++++++++++++++ gnome-control-center.spec | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0001-Fix-double-free-when-closing-the-input-chooser-dialo.patch diff --git a/0001-Fix-double-free-when-closing-the-input-chooser-dialo.patch b/0001-Fix-double-free-when-closing-the-input-chooser-dialo.patch new file mode 100644 index 0000000..b5ac251 --- /dev/null +++ b/0001-Fix-double-free-when-closing-the-input-chooser-dialo.patch @@ -0,0 +1,25 @@ +From f4e36ef892d29a437676f5a34fde440f93ec7007 Mon Sep 17 00:00:00 2001 +From: shao_xuehua +Date: Fri, 5 May 2023 16:21:16 +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 + diff --git a/gnome-control-center.spec b/gnome-control-center.spec index cdac436..35d5df9 100644 --- a/gnome-control-center.spec +++ b/gnome-control-center.spec @@ -1,6 +1,6 @@ Name: gnome-control-center Version: 3.30.1 -Release: 11 +Release: 12 Summary: GNOME Settings is GNOME's main interface for configuration of various aspects of your desktop. License: GPLv2+ and CC-BY-SA URL: http://www.gnome.org @@ -31,6 +31,7 @@ Obsoletes: control-center < 1:%{version}-%{release} # Patch0 and Patch2 is from fedora 29 Patch1: 0001-online-accounts-Track-the-lifecycle-of-CcGoaPanel-ac.patch Patch2: 0002-background-Add-queue-to-load-4-pictures-at-a-time.patch +Patch3: 0001-Fix-double-free-when-closing-the-input-chooser-dialo.patch Patch9000: bugfix-gnome-control-center-clickassist-fix.patch Patch9001: bugfix-gnome-control-center-fix-repetitivewallpapers.patch @@ -103,6 +104,9 @@ chrpath --delete %{buildroot}%{_bindir}/gnome-control-center %{_mandir}/man1/*.gz %changelog +* Fri May 5 2023 shao_xuehua - 3.30.1-12 +- Fix double-free when closing the input chooser dialog + * Sat Aug 29 2020 jinzhimin - 3.30.1-11 - Delete BuildRequires libXxf86misc-devel -- Gitee