From: Mike Gorse Date: Mon, 3 Jan 2011 15:42:19 +0000 (-0600) Subject: Fix another crash with disposed applications X-Git-Tag: AT_SPI2_CORE_1_91_5~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f1ee0e260460241519fa0dd5fd7b37ec3f4c62eb;p=platform%2Fupstream%2Fat-spi2-core.git Fix another crash with disposed applications --- diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c index dd014a8..2b62ff9 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);