diff --git a/SOURCES/gtk-3.22.20-fix-treeview-refcount2.patch b/SOURCES/gtk-3.22.20-fix-treeview-refcount2.patch new file mode 100644 index 0000000..f2dc206 --- /dev/null +++ b/SOURCES/gtk-3.22.20-fix-treeview-refcount2.patch @@ -0,0 +1,27 @@ +From cc977be580b9a7c2683810fe36fe485ee8583ec0 Mon Sep 17 00:00:00 2001 +From: Matthias Clasen +Date: Fri, 11 Feb 2022 18:39:55 -0500 +Subject: [PATCH] Fix a leak of cell accessibles + +gtk_container_cell_accessible_add_child is transfer none, +so we need to drop the reference we hold, otherwise it +leaks. +--- + gtk/a11y/gtktreeviewaccessible.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gtk/a11y/gtktreeviewaccessible.c b/gtk/a11y/gtktreeviewaccessible.c +index c1a2097a1e..c2b7e8add0 100644 +--- a/gtk/a11y/gtktreeviewaccessible.c ++++ b/gtk/a11y/gtktreeviewaccessible.c +@@ -413,6 +413,7 @@ create_cell_accessible (GtkTreeView *treeview, + { + cell = create_cell_accessible_for_renderer (l->data, GTK_WIDGET (treeview), ATK_OBJECT (container)); + gtk_container_cell_accessible_add_child (container, cell); ++ g_object_unref (cell); + } + + cell = GTK_CELL_ACCESSIBLE (container); +-- +GitLab + diff --git a/SPECS/gtk3.spec b/SPECS/gtk3.spec index 99b3441..ebb17ec 100644 --- a/SPECS/gtk3.spec +++ b/SPECS/gtk3.spec @@ -22,7 +22,7 @@ Name: gtk3 Version: 3.22.30 -Release: 9%{?dist} +Release: 10%{?dist} Summary: GTK+ graphical user interface library License: LGPLv2+ @@ -48,10 +48,11 @@ Patch8: 0001-fix-nonoverlay-scrollbars.patch Patch9: 0001-reftests-Enforce-default-settings.patch # https://bugzilla.redhat.com/show_bug.cgi?id=2032438 Patch10: gtk-3.22.20-fix-treeview-refcount.patch +Patch11: gtk-3.22.20-fix-treeview-refcount2.patch # https://bugzilla.redhat.com/show_bug.cgi?id=1887266 -Patch11: gtk-3.22.20-quiet-exit.patch +Patch12: gtk-3.22.20-quiet-exit.patch # https://bugzilla.redhat.com/show_bug.cgi?id=2032437 -Patch12: gtk-3.22.20-avoid-cellarea-crash.patch +Patch13: gtk-3.22.20-avoid-cellarea-crash.patch BuildRequires: pkgconfig(atk) >= %{atk_version} BuildRequires: pkgconfig(atk-bridge-2.0) @@ -203,6 +204,7 @@ the functionality of the installed %{name} package. %patch10 -p1 %patch11 -p1 %patch12 -p1 +%patch13 -p1 %build export CFLAGS='-fno-strict-aliasing %optflags' @@ -361,6 +363,9 @@ gtk-query-immodules-3.0-%{__isa_bits} --update-cache &>/dev/null || : %{_datadir}/installed-tests %changelog +* Tue Feb 15 2022 David King - 3.22.30-10 +- Further treeview a11y refcount fix (#2032438) + * Mon Jan 17 2022 David King - 3.22.30-9 - Fix treeview a11y refcounting (#2032438) - Be quiet on exit under X11 (#1887266)