summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-02-11 18:39:55 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-02-11 18:39:55 -0500
commitcc977be580b9a7c2683810fe36fe485ee8583ec0 (patch)
tree2e3e9b6e0a4ce3a5a3780fcd6cacdb2d633f08b8
parentc7f9c80eb52a3180b5de9961506367c998b95ba0 (diff)
downloadgtk+-cc977be580b9a7c2683810fe36fe485ee8583ec0.tar.gz
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.
-rw-r--r--gtk/a11y/gtktreeviewaccessible.c1
1 files changed, 1 insertions, 0 deletions
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);