diff options
author | Mike Gorse <mgorse@novell.com> | 2011-01-03 09:42:19 -0600 |
---|---|---|
committer | Mike Gorse <mgorse@novell.com> | 2011-01-03 09:42:19 -0600 |
commit | f1ee0e260460241519fa0dd5fd7b37ec3f4c62eb (patch) | |
tree | ec6b1047f9d950879ca75a3a7763626165ecb49b /atspi/atspi-misc.c | |
parent | e19d5c61d12104d0f7c94a8280096a5d637d53f9 (diff) | |
download | at-spi2-core-f1ee0e260460241519fa0dd5fd7b37ec3f4c62eb.tar.gz |
Fix another crash with disposed applications
Diffstat (limited to 'atspi/atspi-misc.c')
-rw-r--r-- | atspi/atspi-misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c index dd014a83..2b62ff93 100644 --- a/atspi/atspi-misc.c +++ b/atspi/atspi-misc.c @@ -1159,6 +1159,10 @@ _atspi_dbus_send_with_reply_and_block (DBusMessage *message) DBusConnection *bus; app = get_application (dbus_message_get_destination (message)); + + if (app && !app->bus) + return NULL; /* will fail anyway; app has been disposed */ + bus = (app ? app->bus : _atspi_bus()); dbus_error_init (&err); reply = dbind_send_and_allow_reentry (bus, message, &err); |