In GetItems, unref objects in two passes
authorMike Gorse <mgorse@novell.com>
Sat, 26 Nov 2011 21:50:55 +0000 (15:50 -0600)
committerMike Gorse <mgorse@novell.com>
Sat, 26 Nov 2011 21:50:55 +0000 (15:50 -0600)
commit770fcb6cf42143eebe5ebd9660a1c8737edaca6b
tree4d99f18d44354128063d0429dad6401a16dfce10
parentad89a912c7dce5cc98598f53090d2c69a2534c3d
In GetItems, unref objects in two passes

It is dangerous to unref cache objects inside a g_hash_table_foreach,
since, if the object is finalized, it will be removed, which can cause
problems with the iterator. Instead, make a GSList of the objects to
unref, then use this GSList to unref.
atk-adaptor/adaptors/cache-adaptor.c