Blame SOURCES/gtk-3.22.20-fix-treeview-refcount2.patch
|
|
f75ba0 |
From cc977be580b9a7c2683810fe36fe485ee8583ec0 Mon Sep 17 00:00:00 2001
|
|
|
f75ba0 |
From: Matthias Clasen <mclasen@redhat.com>
|
|
|
f75ba0 |
Date: Fri, 11 Feb 2022 18:39:55 -0500
|
|
|
f75ba0 |
Subject: [PATCH] Fix a leak of cell accessibles
|
|
|
f75ba0 |
|
|
|
f75ba0 |
gtk_container_cell_accessible_add_child is transfer none,
|
|
|
f75ba0 |
so we need to drop the reference we hold, otherwise it
|
|
|
f75ba0 |
leaks.
|
|
|
f75ba0 |
---
|
|
|
f75ba0 |
gtk/a11y/gtktreeviewaccessible.c | 1 +
|
|
|
f75ba0 |
1 file changed, 1 insertion(+)
|
|
|
f75ba0 |
|
|
|
f75ba0 |
diff --git a/gtk/a11y/gtktreeviewaccessible.c b/gtk/a11y/gtktreeviewaccessible.c
|
|
|
f75ba0 |
index c1a2097a1e..c2b7e8add0 100644
|
|
|
f75ba0 |
--- a/gtk/a11y/gtktreeviewaccessible.c
|
|
|
f75ba0 |
+++ b/gtk/a11y/gtktreeviewaccessible.c
|
|
|
f75ba0 |
@@ -413,6 +413,7 @@ create_cell_accessible (GtkTreeView *treeview,
|
|
|
f75ba0 |
{
|
|
|
f75ba0 |
cell = create_cell_accessible_for_renderer (l->data, GTK_WIDGET (treeview), ATK_OBJECT (container));
|
|
|
f75ba0 |
gtk_container_cell_accessible_add_child (container, cell);
|
|
|
f75ba0 |
+ g_object_unref (cell);
|
|
|
f75ba0 |
}
|
|
|
f75ba0 |
|
|
|
f75ba0 |
cell = GTK_CELL_ACCESSIBLE (container);
|
|
|
f75ba0 |
--
|
|
|
f75ba0 |
GitLab
|
|
|
f75ba0 |
|