From bae12236d35ba6da1506a4c33094cd6b91d38e22 Mon Sep 17 00:00:00 2001 From: Mike Gorse Date: Mon, 18 Apr 2011 11:33:51 -0500 Subject: [PATCH] Fix a crash introduced in last commit --- atspi/atspi-accessible.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c index 86f47d8..9f01868 100644 --- a/atspi/atspi-accessible.c +++ b/atspi/atspi-accessible.c @@ -719,7 +719,7 @@ atspi_accessible_get_application (AtspiAccessible *obj, GError **error) for (;;) { parent = atspi_accessible_get_parent (obj, NULL); - if (!parent && + if (!parent && obj->parent.app && atspi_accessible_get_role (obj, NULL) != ATSPI_ROLE_APPLICATION) { AtspiAccessible *root = g_object_ref (obj->parent.app->root); -- 2.7.4