diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-11 18:08:16 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-11 18:33:15 +0000 |
commit | 73b14a3c3a980be4a8860532914a16fb61cc410b (patch) | |
tree | d4a7ba35f3639fafa860c3f533fcf2769b2386ea /gtk/gtkstack.c | |
parent | 40c0826921d9d59fe4a165fa1717e23cc9ceedb7 (diff) | |
download | gtk+-73b14a3c3a980be4a8860532914a16fb61cc410b.tar.gz |
a11y: Do not leak the ATContext in GtkStackPage
GtkStackPage is not a widget, so it must release the reference on the
ATContext it owns.
Diffstat (limited to 'gtk/gtkstack.c')
-rw-r--r-- | gtk/gtkstack.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c index bb6ecfeb12..3d70475ff9 100644 --- a/gtk/gtkstack.c +++ b/gtk/gtkstack.c @@ -274,6 +274,8 @@ gtk_stack_page_finalize (GObject *object) g_object_remove_weak_pointer (G_OBJECT (page->last_focus), (gpointer *)&page->last_focus); + g_clear_object (&page->at_context); + G_OBJECT_CLASS (gtk_stack_page_parent_class)->finalize (object); } |