Only initialize the cache when an AT is running
authorMike Gorse <mgorse@suse.com>
Thu, 13 Sep 2012 17:55:36 +0000 (12:55 -0500)
committerMike Gorse <mgorse@suse.com>
Thu, 13 Sep 2012 17:55:36 +0000 (12:55 -0500)
commit611d01e09224ab1e2b1a22516feb6a13671be059
tree3eb31a059f2b042c48bb89b766b2ad2766a4e87a
parent278bafc52334d22f65e1d1d56af38ebc4b4f8352
Only initialize the cache when an AT is running

If no AT is running, we shouldn't need to be maintaining the cache, so
only initialize when an AT is active. Note that this change does not
deinitialize the cache when an AT is no longer running. Deinitializing
and setting spi_global_cache to NULL might be a good idea, but trying to
keep risk to a minimum this close to 3.6.
atk-adaptor/accessible-cache.c
atk-adaptor/bridge.c