Ensure that an object is registered before adding it to the cache
authorMike Gorse <mgorse@novell.com>
Mon, 16 Aug 2010 22:21:06 +0000 (18:21 -0400)
committerMike Gorse <mgorse@novell.com>
Mon, 16 Aug 2010 22:21:06 +0000 (18:21 -0400)
commite9d07f63b34219ce5fab8a3b979b1c98653faf57
treef371b1c78a10da4ef2e94b772a18129ed99e6888
parent573ab181a2b473ffa087eb31e057b2453cb8315c
Ensure that an object is registered before adding it to the cache

We need to ensure that an object is registered before putting it in the
cache, since registering the object adds the weak_ref that we use to know
when the object should be removed from the cache.  Prevents a crash in
GetItems.
atk-adaptor/accessible-cache.c