projects
/
platform
/
upstream
/
at-spi2-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
777f9ae
)
atspi_accessible_clear_cache: don't crash if we have no children
author
Mike Gorse
<mgorse@suse.com>
Tue, 31 May 2016 19:44:17 +0000
(14:44 -0500)
committer
Mike Gorse
<mgorse@suse.com>
Tue, 31 May 2016 19:46:11 +0000
(14:46 -0500)
If an accessible is disposed, then its list of children may be NULL.
https://bugzilla.gnome.org/show_bug.cgi?id=767075
atspi/atspi-accessible.c
patch
|
blob
|
history
diff --git
a/atspi/atspi-accessible.c
b/atspi/atspi-accessible.c
index
ceaedb5
..
4547ef7
100644
(file)
--- a/
atspi/atspi-accessible.c
+++ b/
atspi/atspi-accessible.c
@@
-1634,8
+1634,9
@@
atspi_accessible_clear_cache (AtspiAccessible *obj)
if (obj)
{
obj->cached_properties = ATSPI_CACHE_NONE;
- for (i = 0; i < obj->children->len; i++)
- atspi_accessible_clear_cache (g_ptr_array_index (obj->children, i));
+ if (obj->children)
+ for (i = 0; i < obj->children->len; i++)
+ atspi_accessible_clear_cache (g_ptr_array_index (obj->children, i));
}
}