Fix a possible crash when an application is short-lived
authorMike Gorse <mgorse@novell.com>
Wed, 4 May 2011 19:34:48 +0000 (14:34 -0500)
committerMike Gorse <mgorse@novell.com>
Wed, 4 May 2011 19:41:32 +0000 (14:41 -0500)
commitb592fea73b4e86463465fb934f45c126277fbdd6
tree1de86cabb53f90c4ce75805054ae3eb224ee2464
parentf0b979c8d448ff45c93afb9670f7decf6a2e3a04
Fix a possible crash when an application is short-lived

When GetAPplicationBusAddress is called, at-spi sets a callback to handle the
reply.  It is possible that the application will go away and the
AtspiApplication will be disposed before this callback is reached, in which
case the reference to the accessibility bus connection will have gone away.
In this case, we should not call GetItems, since app->bus will be NULL and
libdbus will throw a SIGABRT.
atspi/atspi-misc.c