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:
e19d5c6
)
Fix another crash with disposed applications
author
Mike Gorse
<mgorse@novell.com>
Mon, 3 Jan 2011 15:42:19 +0000
(09:42 -0600)
committer
Mike Gorse
<mgorse@novell.com>
Mon, 3 Jan 2011 15:42:19 +0000
(09:42 -0600)
atspi/atspi-misc.c
patch
|
blob
|
history
diff --git
a/atspi/atspi-misc.c
b/atspi/atspi-misc.c
index
dd014a8
..
2b62ff9
100644
(file)
--- 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);