diff options
author | Mike Gorse <mgorse@novell.com> | 2011-09-15 16:41:28 -0500 |
---|---|---|
committer | Mike Gorse <mgorse@novell.com> | 2011-09-15 16:41:28 -0500 |
commit | d4e6ce638f4178ea9737ff8aa6d10f49dfca4f58 (patch) | |
tree | e1192fa5d1f86feadc65824079993df44f26ce64 /atspi/atspi-collection.c | |
parent | c0e7c34fc7b8e3a5f117a7c852c5110ad1a37e46 (diff) | |
download | at-spi2-core-d4e6ce638f4178ea9737ff8aa6d10f49dfca4f58.tar.gz |
Add some defensive checks to prevent problems with defunct objects
Diffstat (limited to 'atspi/atspi-collection.c')
-rw-r--r-- | atspi/atspi-collection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/atspi/atspi-collection.c b/atspi/atspi-collection.c index 210a0cdb..a9657572 100644 --- a/atspi/atspi-collection.c +++ b/atspi/atspi-collection.c @@ -49,6 +49,8 @@ new_message (AtspiCollection *collection, char *method) return NULL; accessible = ATSPI_ACCESSIBLE (collection); + if (!accessible->parent.app) + return NULL; return dbus_message_new_method_call (accessible->parent.app->bus_name, accessible->parent.path, atspi_interface_collection, |