[gtk/matthiasc/a11y] atspicontext: Own a ref to the root
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/a11y] atspicontext: Own a ref to the root
- Date: Fri, 9 Oct 2020 19:29:35 +0000 (UTC)
commit 713eaaec42c049bb166e75a18a963a68623cedf3
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Oct 9 15:28:55 2020 -0400
atspicontext: Own a ref to the root
The dispose method drops a reference, so we need
to make sure that we own one in the first place.
gtk/a11y/gtkatspicontext.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c
index 46f4f307f7..61b9756747 100644
--- a/gtk/a11y/gtkatspicontext.c
+++ b/gtk/a11y/gtkatspicontext.c
@@ -166,6 +166,8 @@ gtk_at_spi_context_constructed (GObject *gobject)
g_object_ref (self->root),
g_object_unref);
}
+ else
+ g_object_ref (self->root);
/* We use the application's object path to build the path of each
* accessible object exposed on the accessibility bus; the path is
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]