diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-02-11 18:39:55 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-02-11 18:39:55 -0500 |
commit | cc977be580b9a7c2683810fe36fe485ee8583ec0 (patch) | |
tree | 2e3e9b6e0a4ce3a5a3780fcd6cacdb2d633f08b8 | |
parent | c7f9c80eb52a3180b5de9961506367c998b95ba0 (diff) | |
download | gtk+-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.c | 1 |
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); |